Skip to content

Commit b8dac9c

Browse files
committed
feat: allow rows to truncate
1 parent f75fd8f commit b8dac9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use anyhow::{bail, Context};
44
use data::filter::{Comparator, FieldSpecifier, FilterConfig, FilterOn};
55
use egui::{
66
text::{CCursor, CCursorRange},
7-
Align, KeyboardShortcut,
7+
Align, KeyboardShortcut, Label,
88
};
99
use egui_extras::{Column, TableBuilder};
1010
use shortcut::Shortcuts;
@@ -200,7 +200,7 @@ impl LogViewerApp {
200200
.unwrap_or(&default_text_color);
201201
ui.colored_label(*color, display_value);
202202
} else {
203-
ui.label(display_value);
203+
ui.add(Label::new(display_value).truncate());
204204
}
205205
}
206206
});

0 commit comments

Comments
 (0)