style: 更新品牌标识与侧栏切换图标
This commit is contained in:
1 parent
7763170830
commit
a442087ea9
4 files changed
+63
-19
No files matched your search
+13
-13
@@ -14,8 +14,8 @@ import {
|
||||
type MenuOption
|
||||
} from 'naive-ui'
|
||||
import {
|
||||
Archive,
|
||||
Clapperboard,
|
||||
Archive,
|
||||
Camera,
|
||||
Images,
|
||||
Palette,
|
||||
@@ -23,11 +23,12 @@ import {
|
||||
FolderOpen,
|
||||
FileText,
|
||||
Layers,
|
||||
Menu,
|
||||
PanelLeftClose,
|
||||
PanelLeftOpen,
|
||||
Settings2,
|
||||
X
|
||||
} from '@lucide/vue'
|
||||
import { AppDialog } from './components/ui'
|
||||
import { AppDialog, StudioLogo } from './components/ui'
|
||||
import { useTheme } from './composables/useTheme'
|
||||
import ThemeToggle from './components/ui/ThemeToggle.vue'
|
||||
import { projectAccessKey, type ProjectAccess } from './features/projects/access'
|
||||
@@ -195,7 +196,7 @@ const menuOptions = computed<MenuOption[]>(() => {
|
||||
:class="{ 'is-collapsed': collapsed }"
|
||||
aria-label="短剧工作台首页"
|
||||
>
|
||||
<Clapperboard :size="narrow ? NAV_ICON_SIZE : 24" /><span
|
||||
<StudioLogo :size="narrow ? 23 : 27" /><span class="admin-brand-copy"
|
||||
>短剧工作台<small>SHORT DRAMA STUDIO</small></span
|
||||
>
|
||||
</RouterLink>
|
||||
@@ -249,7 +250,9 @@ const menuOptions = computed<MenuOption[]>(() => {
|
||||
aria-controls="main-navigation"
|
||||
@click="toggleNav"
|
||||
>
|
||||
<template #icon><Menu :size="20" /></template>
|
||||
<template #icon
|
||||
><component :is="collapsed ? PanelLeftOpen : PanelLeftClose" :size="20"
|
||||
/></template>
|
||||
</NButton>
|
||||
<span class="truncate text-sm">{{ route.meta.title || '工作空间' }}</span>
|
||||
</div>
|
||||
@@ -362,20 +365,17 @@ const menuOptions = computed<MenuOption[]>(() => {
|
||||
@apply flex shrink-0 items-center gap-3 h-[74px] overflow-hidden py-0 px-5 text-ink whitespace-nowrap;
|
||||
min-width: var(--admin-sider-expanded);
|
||||
}
|
||||
.admin-brand > svg {
|
||||
@apply shrink-0;
|
||||
}
|
||||
.admin-brand span {
|
||||
.admin-brand-copy {
|
||||
@apply text-[15px] font-semibold;
|
||||
opacity: 1;
|
||||
transition:
|
||||
opacity 0.2s ease,
|
||||
transform 0.2s ease;
|
||||
}
|
||||
.admin-sider.is-collapsed .admin-brand span {
|
||||
.admin-sider.is-collapsed .admin-brand-copy {
|
||||
opacity: 0;
|
||||
}
|
||||
.admin-brand small {
|
||||
.admin-brand-copy small {
|
||||
@apply block text-[8px] tracking-[1px] font-normal text-muted mt-[3px];
|
||||
}
|
||||
.admin-topbar {
|
||||
@@ -525,7 +525,7 @@ const menuOptions = computed<MenuOption[]>(() => {
|
||||
.admin-brand {
|
||||
@apply h-12 min-w-0 flex-1 justify-start px-3.5;
|
||||
}
|
||||
.admin-sider.is-collapsed .admin-brand span,
|
||||
.admin-sider.is-collapsed .admin-brand-copy,
|
||||
.admin-sider.is-collapsed .n-menu-item-content-header,
|
||||
.admin-sider.is-collapsed .admin-settings-label {
|
||||
opacity: 1;
|
||||
@@ -545,7 +545,7 @@ const menuOptions = computed<MenuOption[]>(() => {
|
||||
.admin-sider.is-collapsed .admin-sider-footer,
|
||||
.admin-sider .n-menu-item-content-header,
|
||||
.admin-menu-label,
|
||||
.admin-brand span,
|
||||
.admin-brand-copy,
|
||||
.admin-settings-label {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user