fix:maibot内部配置字段在amem中过滤

This commit is contained in:
SengokuCola
2026-05-06 15:50:06 +08:00
parent 8c73424583
commit 98294b39ad
4 changed files with 21 additions and 5 deletions

View File

@@ -130,7 +130,7 @@ export function Layout({ children }: LayoutProps) {
key="settings-sidebar"
className="relative z-40 hidden shrink-0 lg:block"
initial={{ width: 0, opacity: 0 }}
animate={{ width: sidebarOpen ? 240 : 64, opacity: 1 }}
animate={{ width: sidebarOpen ? 224 : 64, opacity: 1 }}
exit={{ width: 0, opacity: 0 }}
transition={{
type: 'spring',

View File

@@ -32,8 +32,8 @@ export function Sidebar({
'fixed inset-y-0 left-0 z-50 isolate flex flex-col border-r transition-all duration-300 lg:relative lg:z-0 lg:h-full',
inheritsPageBackground ? 'bg-transparent' : 'bg-card',
// 移动端始终显示完整宽度,桌面端根据 sidebarOpen 切换
'w-60 lg:w-auto',
sidebarOpen ? 'lg:w-60' : 'lg:w-16',
'w-56 lg:w-auto',
sidebarOpen ? 'lg:w-56' : 'lg:w-16',
mobileMenuOpen ? 'translate-x-0' : '-translate-x-full lg:translate-x-0'
)}
>

View File

@@ -183,7 +183,7 @@
--layout-space-lg: 1.5rem;
--layout-space-xl: 2rem;
--layout-space-2xl: 3rem;
--layout-sidebar-width: 15rem;
--layout-sidebar-width: 14rem;
--layout-header-height: 3.5rem;
--layout-max-content-width: 1280px;