make search usable on mobile

This commit is contained in:
Malte E 2022-02-18 21:06:28 +01:00
parent b124cdfca2
commit 144e7cd038
2 changed files with 19 additions and 1 deletions

View file

@ -673,6 +673,24 @@ Page {
}
}
ImageButton {
visible: !collapsed
Layout.fillWidth: true
hoverEnabled: true
ripple: false
width: 22
height: 22
image: ":/icons/icons/ui/search.svg"
ToolTip.visible: hovered
ToolTip.delay: Nheko.tooltipDelay
ToolTip.text: qsTr("Search rooms (Ctrl+K)")
Layout.margins: Nheko.paddingMedium
onClicked: {
var quickSwitch = quickSwitcherComponent.createObject(timelineRoot);
quickSwitch.open();
}
}
ImageButton {
visible: !collapsed
Layout.fillWidth: true