diff --git a/web/src/components/ChatComponent.vue b/web/src/components/ChatComponent.vue index bdb2afda..8897f71d 100644 --- a/web/src/components/ChatComponent.vue +++ b/web/src/components/ChatComponent.vue @@ -29,6 +29,17 @@
最大历史轮数
+
+ 字体大小 + + 更小 + 默认 + 更大 + +
+
+ 宽屏模式
+
@@ -45,7 +56,7 @@ -
+
-
+
- 对话历史 + 对话历史
@@ -129,6 +129,12 @@ onMounted(() => { position: relative; } +.chat-container .conversations { + transition: width 0.3s ease, opacity 0.3s ease, flex 0.3s ease; + white-space: nowrap; /* 防止文本换行 */ + overflow: hidden; /* 确保内容不溢出 */ +} + .chat-container .conversations:not(.is-open) { width: 0; opacity: 0; @@ -136,15 +142,14 @@ onMounted(() => { } .chat-container .conversations.is-open { - overflow: hidden; /* 确保内容不溢出 */ - white-space: nowrap; /* 防止文本换行 */ flex: 1 1 auto; /* 当侧边栏打开时,占据可用空间 */ + width: 230px; + opacity: 1; } .conversations { width: 230px; /* 初始宽度 */ max-width: 230px; border-right: 1px solid var(--main-light-3); - overflow: hidden; /* 确保内容不溢出 */ max-height: 100%; background-color: var(--bg-sider); @@ -157,6 +162,13 @@ onMounted(() => { z-index: 9; border-bottom: 1px solid var(--main-light-3); + .header-title { + font-weight: bold; + user-select: none; + white-space: nowrap; + overflow: hidden; + } + .action { font-size: 1.2rem; width: 2.5rem; diff --git a/web/src/views/HomeView.vue b/web/src/views/HomeView.vue index 66f6c2bf..aee5230e 100644 --- a/web/src/views/HomeView.vue +++ b/web/src/views/HomeView.vue @@ -5,21 +5,51 @@

大模型驱动的知识库管理工具

Placeholder Image + + +
© 江南语析 2025 [WIP] v0.12.138
@@ -92,6 +122,36 @@ img { max-width: 90%; } +.github-info { + margin-top: 20px; + + a { + display: flex; + align-items: center; + text-decoration: none; + color: #333; + padding: 8px 16px; + border-radius: 20px; + background-color: rgba(255, 255, 255, 0.5); + transition: all 0.3s; + + &:hover { + background-color: rgba(255, 255, 255, 0.8); + transform: translateY(-2px); + box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1); + } + + svg { + margin-right: 8px; + } + + .stars-count { + font-weight: 600; + font-size: 16px; + } + } +} + footer { font-size: 1rem; color: #666;