fix: make full titlebar strip draggable in dock and sidebar

This commit is contained in:
2026-11-09 10:04:57 +07:00
parent 7784e8d570
commit 6815585528
4 changed files with 49 additions and 37 deletions
+7 -1
View File
@@ -98,8 +98,14 @@ fn the_pill_bar_pads_for_traffic_lights_when_it_leads_the_window() {
bounds(&mut visual, "test-dock-pane-0-tabs-tab-overview").expect("tab missing");
let padded_inset = padded_tab.left() - padded_bar.left();
// The bare bar keeps the standard leading padding; the padded bar clears
// the traffic lights.
assert!(
padded_inset - bare_inset >= px(TRAFFIC_LIGHT_PAD) - px(1.),
bare_inset < px(TRAFFIC_LIGHT_PAD),
"the bare bar must not reserve the traffic-light pad (bare {bare_inset:?})"
);
assert!(
padded_inset >= px(TRAFFIC_LIGHT_PAD) - px(1.),
"the pad must clear the traffic lights (bare {bare_inset:?}, padded {padded_inset:?})"
);
}