From 30fe6b93c4bcc20988e7aedef6cacdc55c3e0a50 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 5 Dec 2025 15:10:48 +0200 Subject: [PATCH] chore(launch_bar): remove now redundant file --- .../src/widgets/quick_search_launcher.ts | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 apps/client/src/widgets/quick_search_launcher.ts diff --git a/apps/client/src/widgets/quick_search_launcher.ts b/apps/client/src/widgets/quick_search_launcher.ts deleted file mode 100644 index f64d1ca1d..000000000 --- a/apps/client/src/widgets/quick_search_launcher.ts +++ /dev/null @@ -1,34 +0,0 @@ -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. - * - *

- * Adds specific tweaks such as: - * - * - Hiding the widget on mobile. - */ -export default class QuickSearchLauncherWidget extends QuickSearchWidget { - - private isHorizontalLayout: boolean; - - constructor(isHorizontalLayout: boolean) { - super(); - this.isHorizontalLayout = isHorizontalLayout; - } - - isEnabled() { - if (!this.isHorizontalLayout) { - // The quick search widget is added somewhere else on the vertical layout. - return false; - } - - if (utils.isMobile()) { - // The widget takes too much spaces to be included in the mobile layout. - return false; - } - - return super.isEnabled(); - } -}