From b0cfcaff3d3e748130db4a0162db749262f61744 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 13 Oct 2025 12:13:37 +0200 Subject: [PATCH] anime: fix anchors in layout --- .../ii/modules/sidebarLeft/Anime.qml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.config/quickshell/ii/modules/sidebarLeft/Anime.qml b/.config/quickshell/ii/modules/sidebarLeft/Anime.qml index 9306a9d09..1b6b47acc 100644 --- a/.config/quickshell/ii/modules/sidebarLeft/Anime.qml +++ b/.config/quickshell/ii/modules/sidebarLeft/Anime.qml @@ -513,25 +513,22 @@ Item { text: "•" } - Item { // NSFW toggle + MouseArea { // NSFW toggle visible: width > 0 implicitWidth: switchesRow.implicitWidth Layout.fillHeight: true + hoverEnabled: true + PointingHandInteraction {} + onPressed: { + nsfwSwitch.checked = !nsfwSwitch.checked + } + RowLayout { id: switchesRow spacing: 5 anchors.centerIn: parent - MouseArea { - anchors.fill: parent - hoverEnabled: true - PointingHandInteraction {} - onPressed: { - nsfwSwitch.checked = !nsfwSwitch.checked - } - } - StyledText { Layout.fillHeight: true Layout.leftMargin: 10 @@ -552,6 +549,7 @@ Item { } } } + } Item { Layout.fillWidth: true }