🔧 chore: 更新依赖并优化聊天UI

- 更新 unocss 和 preset-rem-to-px 从 66.0.0 到 66.5.12
- 调整聊天气泡最大宽度为 90% 以改善显示效果
- 注释掉 rem 转 px 配置
- 添加 .claude 目录到 gitignore
This commit is contained in:
dzq 2026-01-12 09:23:41 +08:00
parent 38958e69fb
commit 50f77f5d68
5 changed files with 945 additions and 532 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@ dist
node_modules node_modules
.eslintcache .eslintcache
vite.config.*.timestamp* vite.config.*.timestamp*
.claude
# MacOS # MacOS
.DS_Store .DS_Store

View File

@ -25,7 +25,7 @@
"marked": "17.0.1", "marked": "17.0.1",
"normalize.css": "8.0.1", "normalize.css": "8.0.1",
"pinia": "3.0.1", "pinia": "3.0.1",
"unocss": "66.0.0", "unocss": "66.5.12",
"vant": "4.9.17", "vant": "4.9.17",
"vconsole": "3.15.1", "vconsole": "3.15.1",
"vue": "3.5.13", "vue": "3.5.13",
@ -37,7 +37,7 @@
"@types/lodash-es": "4.17.12", "@types/lodash-es": "4.17.12",
"@types/node": "22.13.5", "@types/node": "22.13.5",
"@types/nprogress": "0.2.3", "@types/nprogress": "0.2.3",
"@unocss/preset-rem-to-px": "66.0.0", "@unocss/preset-rem-to-px": "66.5.12",
"@vant/auto-import-resolver": "1.2.1", "@vant/auto-import-resolver": "1.2.1",
"@vitejs/plugin-legacy": "6.0.1", "@vitejs/plugin-legacy": "6.0.1",
"@vitejs/plugin-vue": "5.2.1", "@vitejs/plugin-vue": "5.2.1",

File diff suppressed because it is too large Load Diff

View File

@ -111,7 +111,7 @@ const handleDelete = () => {
} }
.bubble-content { .bubble-content {
max-width: 70%; max-width: 90%;
padding: 12px 16px; padding: 12px 16px;
word-break: break-word; word-break: break-word;
line-height: 1.5; line-height: 1.5;

View File

@ -1,4 +1,4 @@
import presetRemToPx from "@unocss/preset-rem-to-px" // import presetRemToPx from "@unocss/preset-rem-to-px"
import { defineConfig, presetAttributify, presetWind3 } from "unocss" import { defineConfig, presetAttributify, presetWind3 } from "unocss"
export default defineConfig({ export default defineConfig({
@ -14,7 +14,7 @@ export default defineConfig({
important: "#app" important: "#app"
}), }),
// 将 unocss 默认采用的 rem 单位转为 px 单位 // 将 unocss 默认采用的 rem 单位转为 px 单位
presetRemToPx() // presetRemToPx()
], ],
// 自定义主题 // 自定义主题
theme: { theme: {