Fix breadcrumbs responsiveness

This commit is contained in:
Jeremy Soller 2024-10-11 08:29:22 -06:00
parent b12b70efb8
commit 45f10be123
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -3290,7 +3290,7 @@ impl Tab {
.align_items(Alignment::Center) .align_items(Alignment::Center)
.spacing(space_xxxs); .spacing(space_xxxs);
//TODO: figure out why this hardcoded offset is needed after the first item is ellipsed //TODO: figure out why this hardcoded offset is needed after the first item is ellipsed
let overflow_offset = 32.0; let overflow_offset = 64.0;
let overflow = w + name_width + overflow_offset > size.width && index > 0; let overflow = w + name_width + overflow_offset > size.width && index > 0;
if overflow { if overflow {
row = row.push(widget::text::body(excess_str)); row = row.push(widget::text::body(excess_str));