From 9ee51a58313bab6523ff968fc98348af4958b6e6 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 30 Nov 2022 15:30:17 +0800 Subject: [PATCH] ui: improve account switcher --- components/main/MainContent.vue | 2 +- components/nav/NavSide.vue | 1 + components/user/UserSwitcher.vue | 2 +- composables/screen.ts | 1 + layouts/default.vue | 31 ++++++++++++++++--------------- 5 files changed, 20 insertions(+), 17 deletions(-) diff --git a/components/main/MainContent.vue b/components/main/MainContent.vue index 64ae5136..3ca7d9d7 100644 --- a/components/main/MainContent.vue +++ b/components/main/MainContent.vue @@ -21,7 +21,7 @@ defineProps<{
- +
diff --git a/components/nav/NavSide.vue b/components/nav/NavSide.vue index 0c00e857..eee95789 100644 --- a/components/nav/NavSide.vue +++ b/components/nav/NavSide.vue @@ -16,6 +16,7 @@ const { t } = useI18n() { aria-label="Switch user" @click="switchUser(user)" > - +
diff --git a/composables/screen.ts b/composables/screen.ts index 4b601579..3797cea5 100644 --- a/composables/screen.ts +++ b/composables/screen.ts @@ -3,3 +3,4 @@ import { breakpointsTailwind } from '@vueuse/core' export const breakpoints = useBreakpoints(breakpointsTailwind) export const isSmallScreen = breakpoints.smallerOrEqual('md') +export const isMediumScreen = breakpoints.smallerOrEqual('lg') diff --git a/layouts/default.vue b/layouts/default.vue index f0f2fb35..8a587f5b 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -21,23 +21,24 @@
- - - - + + + + + + +
+