From 91345ceed17fee16488fd8b17ed1c0f64b041231 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Thu, 11 May 2023 18:34:44 -0400 Subject: [PATCH 1/6] Replace classic view widgets w/ the one from default view --- packages/client/src/ui/classic.vue | 5 +- packages/client/src/ui/classic.widgets.vue | 127 --------------------- 2 files changed, 2 insertions(+), 130 deletions(-) delete mode 100644 packages/client/src/ui/classic.widgets.vue diff --git a/packages/client/src/ui/classic.vue b/packages/client/src/ui/classic.vue index 266effd9a..2c7f12aca 100644 --- a/packages/client/src/ui/classic.vue +++ b/packages/client/src/ui/classic.vue @@ -72,7 +72,7 @@ import { import { defaultStore } from "@/store"; import { i18n } from "@/i18n"; const XHeaderMenu = defineAsyncComponent(() => import("./classic.header.vue")); -const XWidgets = defineAsyncComponent(() => import("./classic.widgets.vue")); +const XWidgets = defineAsyncComponent(() => import("./universal.widgets.vue")); const DESKTOP_THRESHOLD = 1100; @@ -101,7 +101,7 @@ provide("shouldSpacerMin", true); function attachSticky(el) { const sticky = new StickySidebar( el, - defaultStore.state.menuDisplay === "top" ? 0 : 16, + defaultStore.state.menuDisplay === 0, defaultStore.state.menuDisplay === "top" ? 60 : 0 ); // TODO: ヘッダーの高さを60pxと決め打ちしているのを直す window.addEventListener( @@ -282,7 +282,6 @@ onMounted(() => { > .widgets { //--panelBorder: none; width: 300px; - margin-top: 16px; @media (max-width: $widgets-hide-threshold) { display: none; diff --git a/packages/client/src/ui/classic.widgets.vue b/packages/client/src/ui/classic.widgets.vue deleted file mode 100644 index 2c7f16ece..000000000 --- a/packages/client/src/ui/classic.widgets.vue +++ /dev/null @@ -1,127 +0,0 @@ - - - - - From 547848d663229401f43d50c096a78f29f3540187 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Thu, 11 May 2023 19:46:42 -0400 Subject: [PATCH 2/6] Replace classic navbar w/ new --- packages/client/src/ui/_common_/navbar.vue | 17 +++--- packages/client/src/ui/classic.vue | 61 ++++++++++++++++++---- 2 files changed, 57 insertions(+), 21 deletions(-) diff --git a/packages/client/src/ui/_common_/navbar.vue b/packages/client/src/ui/_common_/navbar.vue index 4ff10845f..31c4a40c3 100644 --- a/packages/client/src/ui/_common_/navbar.vue +++ b/packages/client/src/ui/_common_/navbar.vue @@ -1,5 +1,5 @@