From 880bd4011fa9477681032f83a0bd6aa88c52c700 Mon Sep 17 00:00:00 2001
From: jiangchen <1703935164@qq.com>
Date: Tue, 1 Sep 2026 22:48:03 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20chat=20message=20vertical=20layout=20+?=
=?UTF-8?q?=20expand=20only=20assistant;=20font=205=20levels=20(=E6=9C=80?=
=?UTF-8?q?=E5=B0=8F/=E5=B0=8F/=E4=B8=AD/=E5=A4=A7/=E7=89=B9=E5=A4=A7)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/index/index.ux | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/pages/index/index.ux b/src/pages/index/index.ux
index 231c271..af3e6ed 100644
--- a/src/pages/index/index.ux
+++ b/src/pages/index/index.ux
@@ -26,8 +26,8 @@
{{$item.think}}
{{$item.collapsed ? $item.preview : $item.text}}
- 展开 ▾
- 收起 ▴
+ 展开 ▾
+ 收起 ▴
@@ -290,9 +290,9 @@ export default {
} else {
this.fontValue = Math.round(14 + (v / 100) * (22 - 14))
}
- const lv = Math.round((this.fontValue - 14) / 4)
- this.fontLevel = Math.max(0, Math.min(2, lv))
- this.fontLabel = ['小', '中', '大'][this.fontLevel]
+ const lv = Math.round((this.fontValue - 14) / 2)
+ this.fontLevel = Math.max(0, Math.min(4, lv))
+ this.fontLabel = ['最小', '小', '中', '大', '特大'][this.fontLevel]
},
confirmFont() {
@@ -551,6 +551,7 @@ export default {
.chat-scroll {
flex: 1;
width: 100%;
+ flex-direction: column;
}
.chat-img {
@@ -562,6 +563,7 @@ export default {
.chat-msg {
width: 100%;
+ flex-direction: column;
margin-bottom: 6px;
padding: 7px 9px;
border-radius: 10px;
@@ -732,6 +734,8 @@ export default {
.fl0 { font-size: 15px; line-height: 21px; }
.fl1 { font-size: 17px; line-height: 25px; }
.fl2 { font-size: 19px; line-height: 28px; }
+.fl3 { font-size: 21px; line-height: 31px; }
+.fl4 { font-size: 23px; line-height: 34px; }
/* ===== 字体大小弹窗 ===== */
.popup {