1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00

gui: fix right width of right status area in fancy tab bar

refs: #1180
This commit is contained in:
Wez Furlong 2021-12-24 18:07:24 -07:00
parent ebaf49ad6b
commit 3a628527b7

View File

@ -735,11 +735,11 @@ impl super::TermWindow {
);
let text_bounding_rect = tab_bounding_rect.inflate(
metrics.cell_width.get() as isize / -4,
metrics.cell_width.get() as isize / -2,
metrics.cell_height.get() as isize / -4,
);
let desired_width = width.min(text_bounding_rect.width());
let desired_width = desired_width.min(text_bounding_rect.width());
let text_bounding_rect: Rect = euclid::rect(
text_bounding_rect.max_x() - desired_width,
text_bounding_rect.min_y(),