log:简化启动时log

This commit is contained in:
SengokuCola
2026-05-06 16:06:21 +08:00
parent 98294b39ad
commit 3bdc2a9f70
20 changed files with 35 additions and 77 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 ? 224 : 64, opacity: 1 }}
animate={{ width: sidebarOpen ? 208 : 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-56 lg:w-auto',
sidebarOpen ? 'lg:w-56' : 'lg:w-16',
'w-52 lg:w-auto',
sidebarOpen ? 'lg:w-52' : '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: 14rem;
--layout-sidebar-width: 13rem;
--layout-header-height: 3.5rem;
--layout-max-content-width: 1280px;

View File

@@ -225,7 +225,7 @@ export const defaultLightTokens: ThemeTokens = {
'space-lg': '1.5rem',
'space-xl': '2rem',
'space-2xl': '3rem',
'sidebar-width': '16rem',
'sidebar-width': '13rem',
'header-height': '3.5rem',
'max-content-width': '1280px',
},
@@ -320,7 +320,7 @@ export const defaultDarkTokens: ThemeTokens = {
'space-lg': '1.5rem',
'space-xl': '2rem',
'space-2xl': '3rem',
'sidebar-width': '16rem',
'sidebar-width': '13rem',
'header-height': '3.5rem',
'max-content-width': '1280px',
},

View File

@@ -113,22 +113,6 @@ export const FeaturesSection = React.memo(function FeaturesSection({
</p>
<div className="flex items-center space-x-2">
<Switch
id="global_memory"
checked={memoryConfig.global_memory ?? false}
onCheckedChange={(checked) =>
onMemoryChange({ ...memoryConfig, global_memory: checked })
}
/>
<Label htmlFor="global_memory" className="cursor-pointer">
</Label>
</div>
<p className="text-xs text-muted-foreground -mt-2">
</p>
{/* 聊天历史总结配置 */}
<div className="border-t pt-4 mt-4">
<h4 className="text-sm font-semibold mb-3"></h4>

View File

@@ -84,7 +84,6 @@ export interface MemoryConfig {
max_agent_iterations: number
agent_timeout_seconds: number
enable_jargon_detection: boolean
global_memory: boolean
chat_history_topic_check_message_threshold: number
chat_history_topic_check_time_hours: number
chat_history_topic_check_min_messages: number

View File

@@ -605,12 +605,12 @@ export function AppearanceTab() {
<div className="flex justify-between">
<Label>{t('settings.appearance.sidebarWidthLabel')}</Label>
<span className="text-sm text-muted-foreground">
{getTokenValue(themeConfig.tokenOverrides, 'layout', 'sidebar-width', '16rem')}
{getTokenValue(themeConfig.tokenOverrides, 'layout', 'sidebar-width', '13rem')}
</span>
</div>
<Slider
defaultValue={[16]}
value={[parseFloat(getTokenValue(themeConfig.tokenOverrides, 'layout', 'sidebar-width', '16'))]}
value={[parseFloat(getTokenValue(themeConfig.tokenOverrides, 'layout', 'sidebar-width', '13'))]}
min={12}
max={24}
step={0.5}