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:
Dirk Hohndel 2018-10-19 06:34:34 -04:00
parent c797038bd8
commit fd31dfe40d

View file

@ -401,13 +401,13 @@ Kirigami.ScrollablePage {
anchors.left: parent.left
anchors.right: parent.right
Rectangle { // margins didn't work, but adding a rectangle did
width: Kirigami.Units.gridUnit / 4
}
anchors.leftMargin: Kirigami.Units.gridUnit / 2
anchors.rightMargin: Kirigami.Units.gridUnit / 2
onVisibleChanged: numShown.text = diveModel.shown()
Controls.TextField {
id: sitefilter
verticalAlignment: TextInput.AlignVCenter
Layout.fillWidth: true
text: ""
placeholderText: "Full text search"
onAccepted: {
@ -428,9 +428,6 @@ Kirigami.ScrollablePage {
// it gets set whenever visibility or the search text changes
text: ""
}
Rectangle {
width: Kirigami.Units.regularSpacing
}
}
}