fix workspaces centering isssue

This commit is contained in:
lucy 2026-02-07 23:50:10 +01:00
parent 5e7af6969b
commit 7d6785c1ac

View File

@ -1,6 +1,7 @@
pragma ComponentBehavior: Bound
import Quickshell.Hyprland
import QtQuick
import QtQuick.Layouts
import qs
import qs.settings
import qs.reusables
@ -13,7 +14,7 @@ Rectangle {
implicitHeight: Settings.config.barHeight - 10
radius: Settings.config.barHeight / 2
property var screen: screen
Row {
RowLayout {
id: workspaceRow
anchors.centerIn: parent
spacing: 5 // Slightly increase spacing between workspace buttons
@ -23,7 +24,6 @@ Rectangle {
model: Hyprland.workspaces
Rectangle {
id: workspaceNumber
anchors.verticalCenter: parent.verticalCenter
radius: 20
property bool isOnMon: {
if (!modelData)