Skip to content

Commit

Permalink
Merge pull request #89
Browse files Browse the repository at this point in the history
Fix Buttons spacing
  • Loading branch information
TheRustyPickle authored Feb 18, 2025
2 parents d116cee + 36aad91 commit 0070598
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "talon-gui"
version = "1.0.9"
version = "1.1.0"
edition = "2021"
authors = ["TheRustyPickle <rusty.pickle94@gmail.com>"]
readme = "README.md"
Expand Down
4 changes: 4 additions & 0 deletions src/ui_components/widgets/animated_label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ impl Widget for AnimatedLabel {
separator_position,
} = self;

let ui_spacing = ui.spacing().item_spacing.x;

ui.spacing_mut().item_spacing.x = 0.0;

let (separator_left, separator_right) = separator_position;
Expand Down Expand Up @@ -156,6 +158,8 @@ impl Widget for AnimatedLabel {
}
}

ui.spacing_mut().item_spacing.x = ui_spacing;

response
}
}

0 comments on commit 0070598

Please sign in to comment.