mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile/filtering: use margins instead of rectangles to create space
I'm not sure why this had initially failed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c797038bd8
commit
fd31dfe40d
1 changed files with 3 additions and 6 deletions
|
@ -401,13 +401,13 @@ Kirigami.ScrollablePage {
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
Rectangle { // margins didn't work, but adding a rectangle did
|
anchors.leftMargin: Kirigami.Units.gridUnit / 2
|
||||||
width: Kirigami.Units.gridUnit / 4
|
anchors.rightMargin: Kirigami.Units.gridUnit / 2
|
||||||
}
|
|
||||||
onVisibleChanged: numShown.text = diveModel.shown()
|
onVisibleChanged: numShown.text = diveModel.shown()
|
||||||
Controls.TextField {
|
Controls.TextField {
|
||||||
id: sitefilter
|
id: sitefilter
|
||||||
verticalAlignment: TextInput.AlignVCenter
|
verticalAlignment: TextInput.AlignVCenter
|
||||||
|
Layout.fillWidth: true
|
||||||
text: ""
|
text: ""
|
||||||
placeholderText: "Full text search"
|
placeholderText: "Full text search"
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
|
@ -428,9 +428,6 @@ Kirigami.ScrollablePage {
|
||||||
// it gets set whenever visibility or the search text changes
|
// it gets set whenever visibility or the search text changes
|
||||||
text: ""
|
text: ""
|
||||||
}
|
}
|
||||||
Rectangle {
|
|
||||||
width: Kirigami.Units.regularSpacing
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue