From 1261d5033e0da75de3ded82c2bb14826536d6dc0 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 22 May 2025 12:20:11 +0200 Subject: [PATCH] booru: fix next page button text alignment --- .../sidebarLeft/anime/BooruResponse.qml | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/.config/quickshell/modules/sidebarLeft/anime/BooruResponse.qml b/.config/quickshell/modules/sidebarLeft/anime/BooruResponse.qml index 4822a222..4f6b6386 100644 --- a/.config/quickshell/modules/sidebarLeft/anime/BooruResponse.qml +++ b/.config/quickshell/modules/sidebarLeft/anime/BooruResponse.qml @@ -274,18 +274,27 @@ Rectangle { Appearance.m3colors.m3surfaceContainerHighest) } - contentItem: RowLayout { - spacing: 0 - StyledText { - Layout.alignment: Text.AlignVCenter - text: "Next page" - color: Appearance.m3colors.m3onSurface - } - MaterialSymbol { - Layout.alignment: Text.AlignVCenter - iconSize: Appearance.font.pixelSize.larger - color: Appearance.m3colors.m3onSurface - text: "chevron_right" + contentItem: Item { + anchors.fill: parent + implicitHeight: nextPageRow.implicitHeight + implicitWidth: nextPageRow.implicitWidth + + RowLayout { + id: nextPageRow + anchors.centerIn: parent + spacing: 0 + StyledText { + Layout.alignment: Qt.AlignVCenter + verticalAlignment: Text.AlignVCenter + text: "Next page" + color: Appearance.m3colors.m3onSurface + } + MaterialSymbol { + Layout.alignment: Qt.AlignVCenter + iconSize: Appearance.font.pixelSize.larger + color: Appearance.m3colors.m3onSurface + text: "chevron_right" + } } } }