feat(mobile): hide quick search

This commit is contained in:
Elian Doran
2024-11-23 09:34:26 +02:00
parent 8a61b58970
commit d2d2620742
2 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
import utils from "../services/utils.js";
import QuickSearchWidget from "./quick_search.js";
/**
* Similar to the {@link QuickSearchWidget} but meant to be included inside the launcher bar.
*
* <p>
* Adds specific tweaks such as:
*
* - Hiding the widget on mobile.
*/
export default class QuickSearchLauncherWidget extends QuickSearchWidget {
isEnabled() {
if (utils.isMobile()) {
return false;
}
return super.isEnabled();
}
}