@liguoshuai/pi-web-chat 1.8.7 → 1.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/CHANGELOG.md +10 -0
- package/package.json +1 -1
- package/public/style.css +11 -7
package/docs/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [1.8.8] - 2026-08-29
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **消息发送框确认按钮上下居中与正圆对齐优化 (Composer Send Button Alignment & Circular Sizing)**:
|
|
14
|
+
- 修复默认单行输入状态下,发送按钮因与 `textarea` 存在高度差并在 `flex-end` 布局下导致严重偏下、没有垂直居中的问题。
|
|
15
|
+
- 精准对齐单行 `textarea` 高度(32px)与按钮高度(32px),使单行状态下发送/确认按钮在输入框内绝对垂直居中,多行输入时依然平滑吸底。
|
|
16
|
+
- 将桌面端发送按钮修正为标准正圆(`32px × 32px`,`border-radius: 50%`),并补充字号与行高约束,确保图标居中且不影响手机侧及响应式体验。
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
10
20
|
## [1.8.5] - 2026-08-23
|
|
11
21
|
|
|
12
22
|
### Fixed
|
package/package.json
CHANGED
package/public/style.css
CHANGED
|
@@ -718,13 +718,14 @@ body {
|
|
|
718
718
|
}
|
|
719
719
|
.composer textarea {
|
|
720
720
|
flex: 1; background: transparent; border: none; outline: none; resize: none;
|
|
721
|
-
color: var(--text); font-family: inherit; font-size: 15px; line-height:
|
|
722
|
-
padding:
|
|
721
|
+
color: var(--text); font-family: inherit; font-size: 15px; line-height: 20px;
|
|
722
|
+
padding: 6px 0; max-height: 200px; min-height: 32px;
|
|
723
723
|
}
|
|
724
724
|
.composer .send-btn {
|
|
725
|
-
width:
|
|
725
|
+
width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
|
|
726
726
|
background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
|
|
727
|
-
flex-shrink: 0;
|
|
727
|
+
flex-shrink: 0; font-size: 16px; font-weight: 600; line-height: 1;
|
|
728
|
+
transition: background .15s, opacity .15s, transform .1s;
|
|
728
729
|
}
|
|
729
730
|
.composer .send-btn:disabled { background: #3a3a3a; color: #6f6f6f; cursor: not-allowed; }
|
|
730
731
|
.composer .send-btn.stop { background: var(--danger); }
|
|
@@ -1453,20 +1454,23 @@ body {
|
|
|
1453
1454
|
}
|
|
1454
1455
|
|
|
1455
1456
|
.composer-inner {
|
|
1456
|
-
padding:
|
|
1457
|
-
border-radius:
|
|
1457
|
+
padding: 6px 8px 6px 14px;
|
|
1458
|
+
border-radius: 22px;
|
|
1458
1459
|
gap: 6px;
|
|
1459
1460
|
}
|
|
1460
1461
|
|
|
1461
1462
|
.composer textarea {
|
|
1462
|
-
padding:
|
|
1463
|
+
padding: 6px 0;
|
|
1463
1464
|
font-size: 14px;
|
|
1465
|
+
line-height: 20px;
|
|
1466
|
+
min-height: 32px;
|
|
1464
1467
|
max-height: 160px;
|
|
1465
1468
|
}
|
|
1466
1469
|
|
|
1467
1470
|
.composer .send-btn {
|
|
1468
1471
|
width: 32px;
|
|
1469
1472
|
height: 32px;
|
|
1473
|
+
border-radius: 50%;
|
|
1470
1474
|
}
|
|
1471
1475
|
|
|
1472
1476
|
/* CWD Modal Mobile Adjustments */
|