anime: fix anchors in layout

This commit is contained in:
end-4
2025-10-13 12:13:37 +02:00
parent d208b07a94
commit b0cfcaff3d
@@ -513,24 +513,21 @@ Item {
text: "•" text: "•"
} }
Item { // NSFW toggle MouseArea { // NSFW toggle
visible: width > 0 visible: width > 0
implicitWidth: switchesRow.implicitWidth implicitWidth: switchesRow.implicitWidth
Layout.fillHeight: true Layout.fillHeight: true
RowLayout {
id: switchesRow
spacing: 5
anchors.centerIn: parent
MouseArea {
anchors.fill: parent
hoverEnabled: true hoverEnabled: true
PointingHandInteraction {} PointingHandInteraction {}
onPressed: { onPressed: {
nsfwSwitch.checked = !nsfwSwitch.checked nsfwSwitch.checked = !nsfwSwitch.checked
} }
}
RowLayout {
id: switchesRow
spacing: 5
anchors.centerIn: parent
StyledText { StyledText {
Layout.fillHeight: true Layout.fillHeight: true
@@ -552,6 +549,7 @@ Item {
} }
} }
} }
} }
Item { Layout.fillWidth: true } Item { Layout.fillWidth: true }