Skip to content

Commit dc20f62

Browse files
committed
Tweaked the search box size and removed the * from the search field
1 parent fead76c commit dc20f62

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/app/qml/FolderPage.qml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ Page {
110110
// TODO: Add animations on show/hiding search card
111111
id: searchCard
112112
width: Units.dp(300)
113-
height: Units.dp(60)
113+
height: Units.dp(50)
114114
anchors.bottom: parent.bottom
115115
anchors.margins: Units.dp(8)
116116
anchors.horizontalCenter: parent.horizontalCenter
117117
visible: false
118118

119119
RowLayout {
120120
anchors.fill: parent
121-
anchors.margins: Units.dp(16)
121+
anchors.margins: Units.dp(8)
122122
spacing: Units.dp(16)
123123
Icon {
124124
name: "action/search"
@@ -127,10 +127,8 @@ Page {
127127
id: searchField
128128
Layout.fillWidth: true
129129
placeholderText: qsTr("Search")
130-
text: folderModel.model.nameFilters
131130
onAccepted: {
132-
// TODO: add code to translate user input to regex
133-
folderModel.model.nameFilters = [text]
131+
folderModel.model.nameFilters = [ "*" + text + "*" ]
134132
folderModel.model.filterDirectories = true
135133
}
136134
Keys.onPressed: {

0 commit comments

Comments
 (0)