mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
open searcher on drawer for mobile mode
This commit is contained in:
parent
17850b8b40
commit
0a3db3db68
@ -185,9 +185,17 @@ class ComtyApp extends React.Component {
|
||||
openSearcher: (options) => {
|
||||
app.cores.sound.useUIAudio("navigation.search")
|
||||
|
||||
window.app.ModalController.open((props) => <Searcher renderResults {...props} />)
|
||||
if (app.isMobile) {
|
||||
return app.DrawerController.open("searcher", Searcher, {
|
||||
...options,
|
||||
componentProps: {
|
||||
renderResults: true
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
return window.app.ModalController.open((props) => <Searcher renderResults {...props} />)
|
||||
},
|
||||
openNavigationMenu: () => window.app.DrawerController.open("navigation", Navigation),
|
||||
openFullImageViewer: (src) => {
|
||||
const win = new DOMWindow({
|
||||
id: "fullImageViewer",
|
||||
|
Loading…
x
Reference in New Issue
Block a user