From a130e14f9c5e8a9ee37bd8d1e2b66a1a4bf81526 Mon Sep 17 00:00:00 2001 From: Mark Youssef Date: Tue, 14 Oct 2025 10:47:42 -0700 Subject: [PATCH] Remove toggle component --- .../src/app/layouts/toggle-width.component.ts | 31 ------------------- .../src/app/layouts/web-side-nav.component.ts | 3 +- 2 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 apps/web/src/app/layouts/toggle-width.component.ts diff --git a/apps/web/src/app/layouts/toggle-width.component.ts b/apps/web/src/app/layouts/toggle-width.component.ts deleted file mode 100644 index 411fc73b175..00000000000 --- a/apps/web/src/app/layouts/toggle-width.component.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { CommonModule } from "@angular/common"; -import { Component } from "@angular/core"; - -import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service"; -import { NavigationModule } from "@bitwarden/components"; - -@Component({ - selector: "app-toggle-width", - template: ``, - imports: [CommonModule, NavigationModule], -}) -export class ToggleWidthComponent { - protected isDev: boolean; - - constructor(platformUtilsService: PlatformUtilsService) { - this.isDev = platformUtilsService.isDev(); - } - - protected toggleWidth() { - if (document.body.style.minWidth === "unset") { - document.body.style.minWidth = ""; - } else { - document.body.style.minWidth = "unset"; - } - } -} diff --git a/apps/web/src/app/layouts/web-side-nav.component.ts b/apps/web/src/app/layouts/web-side-nav.component.ts index 364b3bedecc..3ddb5fdc433 100644 --- a/apps/web/src/app/layouts/web-side-nav.component.ts +++ b/apps/web/src/app/layouts/web-side-nav.component.ts @@ -4,12 +4,11 @@ import { Component, Input } from "@angular/core"; import { SideNavVariant, NavigationModule } from "@bitwarden/components"; import { ProductSwitcherModule } from "./product-switcher/product-switcher.module"; -import { ToggleWidthComponent } from "./toggle-width.component"; @Component({ selector: "app-side-nav", templateUrl: "web-side-nav.component.html", - imports: [CommonModule, NavigationModule, ProductSwitcherModule, ToggleWidthComponent], + imports: [CommonModule, NavigationModule, ProductSwitcherModule], }) export class WebSideNavComponent { @Input() variant: SideNavVariant = "primary";