Fix breadcrumbs responsiveness
This commit is contained in:
parent
b12b70efb8
commit
45f10be123
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue