mirror of
https://github.com/jwinterm/grim.git
synced 2026-10-17 22:21:27 +02:00
ui: fix text ellipsize
This commit is contained in:
@@ -222,10 +222,7 @@ impl ConnectionsContent {
|
||||
// Draw connections URL.
|
||||
ui.add_space(4.0);
|
||||
let conn_text = format!("{} {}", COMPUTER_TOWER, conn.url);
|
||||
ui.label(RichText::new(conn_text)
|
||||
.color(Colors::TEXT)
|
||||
.size(15.0));
|
||||
|
||||
View::ellipsize_text(ui, conn_text, 15.0, Colors::TEXT);
|
||||
ui.add_space(1.0);
|
||||
|
||||
// Setup connection status text.
|
||||
|
||||
@@ -68,7 +68,7 @@ impl View {
|
||||
});
|
||||
job.wrap = TextWrapping {
|
||||
max_rows: 1,
|
||||
break_anywhere: false,
|
||||
break_anywhere: true,
|
||||
overflow_character: Option::from('﹍'),
|
||||
..Default::default()
|
||||
};
|
||||
@@ -322,7 +322,7 @@ impl View {
|
||||
});
|
||||
job.wrap = TextWrapping {
|
||||
max_rows: 1,
|
||||
break_anywhere: false,
|
||||
break_anywhere: true,
|
||||
overflow_character: Option::from('﹍'),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user