feat(sidebar): 实现响应式侧边栏状态管理
- 添加媒体查询监听以自动切换侧边栏显示状态 - 引入sidebarStore统一管理侧边栏开闭逻辑 - 移除页面内联侧边栏展开控制逻辑 - 添加Sprite图标组件客户端渲染条件判断 - 更新侧边栏样式类名以支持过渡动画效果 - 移除用户信息展示相关冗余代码块
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
};
|
||||
</script>
|
||||
|
||||
<div class="dropdown dropdown-end">
|
||||
<div class="dropdown dropdown-center md:dropdown-end ">
|
||||
<div tabindex="0" role="button" class="rounded hover:bg-base-100 active:bg-base-200 p-2 overflow-hidden flex items-center gap-2">
|
||||
<ThemePreview themeId={$themeStore} />
|
||||
<svg width="12px" height="12px" class="mt-px text-base-content size-2 fill-current opacity-60 sm:inline-block" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048"><path d="M1799 349l242 241-1017 1017L7 590l242-241 775 775 775-775z"></path></svg>
|
||||
|
||||
Reference in New Issue
Block a user