From 21a67d3671e014ef869de2a941d5176d11438661 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 8 Jun 2026 00:37:01 +1000 Subject: [PATCH] fix: block clicks on nexus header --- modules/nexus/common/PageBase.qml | 47 +++++++++++++++++++------------ 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/modules/nexus/common/PageBase.qml b/modules/nexus/common/PageBase.qml index 82df2215..34e0507d 100644 --- a/modules/nexus/common/PageBase.qml +++ b/modules/nexus/common/PageBase.qml @@ -21,27 +21,38 @@ ColumnLayout { spacing: Tokens.spacing.extraLargeIncreased - RowLayout { - spacing: Tokens.spacing.largeIncreased + MouseArea { // Prevent clicks from reaching flickable + z: 1 + implicitWidth: header.implicitWidth + implicitHeight: header.implicitHeight - Layout.bottomMargin + Layout.bottomMargin: -flickable.topMargin // Extra height to block clicks on flickable top margin - Loader { - visible: active - active: root.isSubPage - asynchronous: true - sourceComponent: IconButton { - icon: "arrow_back" - font: Tokens.font.icon.medium - type: IconButton.Tonal - isRound: true - inactiveColour: Colours.tPalette.m3surfaceContainerHigh - inactiveOnColour: Colours.palette.m3onSurfaceVariant - onClicked: root.nState.closeSubPage() + RowLayout { + id: header + + spacing: Tokens.spacing.largeIncreased + + Loader { + visible: active + active: root.isSubPage + asynchronous: true + sourceComponent: IconButton { + icon: "arrow_back" + font: Tokens.font.icon.medium + type: IconButton.Tonal + isRound: true + inactiveColour: Colours.tPalette.m3surfaceContainerHigh + inactiveOnColour: Colours.palette.m3onSurfaceVariant + onClicked: root.nState.closeSubPage() + } } - } - StyledText { - text: root.title - font: Tokens.font.title.large + StyledText { + Layout.fillWidth: true + text: root.title + font: Tokens.font.title.large + elide: Text.ElideRight + } } }