diff --git a/Cargo.lock b/Cargo.lock index a2caf6f..cee65e2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3696,7 +3696,7 @@ dependencies = [ [[package]] name = "talon-gui" -version = "1.0.9" +version = "1.1.0" dependencies = [ "chrono", "csv", diff --git a/Cargo.toml b/Cargo.toml index 0a85bd6..63c3784 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "talon-gui" -version = "1.0.9" +version = "1.1.0" edition = "2021" authors = ["TheRustyPickle "] readme = "README.md" diff --git a/src/ui_components/widgets/animated_label.rs b/src/ui_components/widgets/animated_label.rs index 6389406..21a4872 100644 --- a/src/ui_components/widgets/animated_label.rs +++ b/src/ui_components/widgets/animated_label.rs @@ -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; @@ -156,6 +158,8 @@ impl Widget for AnimatedLabel { } } + ui.spacing_mut().item_spacing.x = ui_spacing; + response } }