fix: prevent deform gap between bar and popouts

This commit is contained in:
2 * r + 2 * t 2026-04-08 17:20:58 +10:00
parent ff5c46a429
commit b1380235eb

View file

@ -211,10 +211,20 @@ StyledWindow {
PanelBg {
id: popoutBg
// Extra width to prevent vertical movement deformation partially detaching panel from bar
property real extraWidth: panels.popouts.isDetached ? 0 : 0.2
panel: panels.popoutsWrapper
deformAmount: panels.popouts.isDetached ? 0.05 : panels.popouts.hasCurrent ? 0.15 : 0.1
x: panels.popoutsWrapper.x + panels.popouts.x + bar.implicitWidth
implicitWidth: panels.popouts.width
x: panels.popoutsWrapper.x + panels.popouts.x + bar.implicitWidth - panels.popouts.width * extraWidth
implicitWidth: panels.popouts.width * (1 + extraWidth)
Behavior on extraWidth {
Anim {
duration: Appearance.anim.durations.expressiveDefaultSpatial
easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial
}
}
}
}