don't wrap time and priority
This commit is contained in:
@ -48,9 +48,7 @@ impl MessageRow {
|
|||||||
.map(|time| time.format("%Y-%m-%d %H:%M:%S").to_string())
|
.map(|time| time.format("%Y-%m-%d %H:%M:%S").to_string())
|
||||||
.unwrap_or_default(),
|
.unwrap_or_default(),
|
||||||
)
|
)
|
||||||
.wrap_mode(gtk::pango::WrapMode::WordChar)
|
|
||||||
.xalign(0.0)
|
.xalign(0.0)
|
||||||
.wrap(true)
|
|
||||||
.build();
|
.build();
|
||||||
time.add_css_class("caption");
|
time.add_css_class("caption");
|
||||||
self.attach(&time, 0, 0, 1, 1);
|
self.attach(&time, 0, 0, 1, 1);
|
||||||
@ -67,12 +65,7 @@ impl MessageRow {
|
|||||||
_ => "Invalid",
|
_ => "Invalid",
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
let priority = gtk::Label::builder()
|
let priority = gtk::Label::builder().label(&text).xalign(0.0).build();
|
||||||
.label(&text)
|
|
||||||
.wrap_mode(gtk::pango::WrapMode::WordChar)
|
|
||||||
.xalign(0.0)
|
|
||||||
.wrap(true)
|
|
||||||
.build();
|
|
||||||
priority.add_css_class("caption");
|
priority.add_css_class("caption");
|
||||||
priority.add_css_class("chip");
|
priority.add_css_class("chip");
|
||||||
if p == 5 {
|
if p == 5 {
|
||||||
|
|||||||
Reference in New Issue
Block a user