diff --git a/nmrs-gui/src/ui/mod.rs b/nmrs-gui/src/ui/mod.rs index cc49eda0..3e34a224 100644 --- a/nmrs-gui/src/ui/mod.rs +++ b/nmrs-gui/src/ui/mod.rs @@ -7,8 +7,8 @@ pub mod wired_page; use gtk::prelude::*; use gtk::{ - Application, ApplicationWindow, Box as GtkBox, Label, Orientation, ScrolledWindow, Spinner, - Stack, STYLE_PROVIDER_PRIORITY_USER, + pango::EllipsizeMode, Application, ApplicationWindow, Box as GtkBox, Label, Orientation, + ScrolledWindow, Spinner, Stack, STYLE_PROVIDER_PRIORITY_USER, }; use std::cell::Cell; use std::rc::Rc; @@ -54,6 +54,9 @@ pub fn build_ui(app: &Application) { let vbox = GtkBox::new(Orientation::Vertical, 0); let status = Label::new(None); + status.set_xalign(0.0); + status.set_ellipsize(EllipsizeMode::End); + status.set_max_width_chars(36); let list_container = GtkBox::new(Orientation::Vertical, 0); let stack = Stack::new(); let is_scanning = Rc::new(Cell::new(false));