1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-11-25 23:26:48 +01:00

quickshell: fix window title overflow

This commit is contained in:
Henrik Hautakoski 2026-11-21 15:35:35 +01:00
parent 1653148595
commit e5d19bd3ab
2 changed files with 28 additions and 13 deletions

View file

@ -26,20 +26,29 @@ PanelWindow {
right: true
}
BarSection {
id: leftContainer
anchors.left: parent.left
anchors.leftMargin: root.marginLeft
}
Item {
anchors.fill: parent
BarSection {
id: centerContainer
anchors.horizontalCenter: parent.horizontalCenter
}
BarSection {
id: leftContainer
anchors.left: parent.left
anchors.leftMargin: root.marginLeft
}
BarSection {
id: rightContainer
anchors.right: parent.right
anchors.rightMargin: root.marginRight
BarSection {
id: centerContainer
anchors.horizontalCenter: parent.horizontalCenter
width: Math.min(implicitWidth, Math.max(0, 2 * Math.min(
parent.width / 2 - (leftContainer.x + leftContainer.width),
rightContainer.x - parent.width / 2
)))
clip: true
}
BarSection {
id: rightContainer
anchors.right: parent.right
anchors.rightMargin: root.marginRight
}
}
}