Commit 46e3deb7 authored by Nate Graham's avatar Nate Graham
Browse files

ViewSelector: use a multiple of GridUnit units for implicitWidth

This lets it adjust with the font size.
parent 2a05946e
......@@ -26,7 +26,7 @@ ScrollView {
viewModeView.ignoreCurrentItemChanges = false
}
implicitWidth: 225
implicitWidth: Kirigami.Units.gridUnit * 12
// HACK: workaround for https://bugreports.qt.io/browse/QTBUG-83890
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
......@@ -80,7 +80,7 @@ ScrollView {
when: mainWindow.width >= elisaTheme.viewSelectorSmallSizeThreshold
PropertyChanges {
target: scrollView
implicitWidth: 225
implicitWidth: Kirigami.Units.gridUnit * 12
}
},
State {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment