代码块内滚动、双击全屏查看、消息日期与复制、上传压缩设置卡片

This commit is contained in:
2026-09-02 14:53:20 +08:00
parent 41adb96a81
commit 4fe8715a31
5 changed files with 99 additions and 12 deletions
+17 -2
View File
@@ -135,13 +135,14 @@ body {
.msg-bubble {
padding: 9px 12px; border-radius: 12px; line-height: 1.55;
word-break: break-word; overflow-wrap: break-word; font-size: 14.5px;
max-width: 100%; min-width: 0;
background: #fff; box-shadow: 0 1px 3px rgba(30,40,90,0.07);
}
.msg.me .msg-bubble { background: #e3eaff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.other .msg-bubble { border-bottom-left-radius: 4px; }
.msg-bubble pre {
background: #f0f2f6; padding: 8px 10px; border-radius: 8px;
overflow-x: auto; font-size: 12.5px; margin: 6px 0;
overflow-x: auto; max-width: 100%; font-size: 12.5px; margin: 6px 0;
}
.msg-bubble code { background: #f0f2f6; padding: 1px 4px; border-radius: 4px; font-size: 12.5px; }
.msg-bubble pre code { background: none; padding: 0; }
@@ -161,7 +162,21 @@ body {
.pending-timer { margin-left: 8px; font-size: 11px; color: #aab; font-variant-numeric: tabular-nums; }
.msg-bubble ul, .msg-bubble ol { padding-left: 1.5em; margin: 6px 0; }
.msg-bubble li { margin: 2px 0; }
.msg-time { font-size: 10px; color: #aab; margin-top: 3px; }
.msg-time { font-size: 10px; color: #aab; margin-top: 3px; display: inline-flex; align-items: center; gap: 5px; }
/* 每条消息的复制图标 */
.copy-btn { display: inline-flex; align-items: center; padding: 1px; border: none; background: none; cursor: pointer; opacity: 0.5; }
.copy-btn svg { width: 11px; height: 11px; stroke: #99a; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn:active, .copy-btn:hover { opacity: 1; }
.copy-btn svg.copied { stroke: #2e7d32; }
/* 消息全屏查看器(双击气泡打开) */
#fs-viewer { position: fixed; inset: 0; z-index: 130; background: rgba(8,10,20,0.88); padding: 40px 14px 24px; overflow-y: auto; }
#fs-viewer.hidden { display: none; }
.fs-panel { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 14px; padding: 18px 20px; font-size: 15.5px; }
.fs-close {
position: fixed; top: 12px; right: 14px; z-index: 131; width: 34px; height: 34px;
border: none; border-radius: 50%; background: rgba(255,255,255,0.18); color: #fff;
font-size: 15px; line-height: 1; cursor: pointer;
}
/* 工具卡片 */
.tool-card {