fix: block clicks on nexus header
This commit is contained in:
parent
3bc2bd2a5c
commit
21a67d3671
1 changed files with 29 additions and 18 deletions
|
|
@ -21,7 +21,15 @@ ColumnLayout {
|
||||||
|
|
||||||
spacing: Tokens.spacing.extraLargeIncreased
|
spacing: Tokens.spacing.extraLargeIncreased
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
id: header
|
||||||
|
|
||||||
spacing: Tokens.spacing.largeIncreased
|
spacing: Tokens.spacing.largeIncreased
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|
@ -40,8 +48,11 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
Layout.fillWidth: true
|
||||||
text: root.title
|
text: root.title
|
||||||
font: Tokens.font.title.large
|
font: Tokens.font.title.large
|
||||||
|
elide: Text.ElideRight
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue