booru: fix next page button text alignment

This commit is contained in:
end-4
2025-05-22 12:20:11 +02:00
parent 8c67c425e9
commit 1261d5033e
@@ -274,15 +274,23 @@ Rectangle {
Appearance.m3colors.m3surfaceContainerHighest) Appearance.m3colors.m3surfaceContainerHighest)
} }
contentItem: RowLayout { contentItem: Item {
anchors.fill: parent
implicitHeight: nextPageRow.implicitHeight
implicitWidth: nextPageRow.implicitWidth
RowLayout {
id: nextPageRow
anchors.centerIn: parent
spacing: 0 spacing: 0
StyledText { StyledText {
Layout.alignment: Text.AlignVCenter Layout.alignment: Qt.AlignVCenter
verticalAlignment: Text.AlignVCenter
text: "Next page" text: "Next page"
color: Appearance.m3colors.m3onSurface color: Appearance.m3colors.m3onSurface
} }
MaterialSymbol { MaterialSymbol {
Layout.alignment: Text.AlignVCenter Layout.alignment: Qt.AlignVCenter
iconSize: Appearance.font.pixelSize.larger iconSize: Appearance.font.pixelSize.larger
color: Appearance.m3colors.m3onSurface color: Appearance.m3colors.m3onSurface
text: "chevron_right" text: "chevron_right"
@@ -291,3 +299,4 @@ Rectangle {
} }
} }
} }
}