v1.2.6 对话操作增强:回答块下方复制/重新生成图标按钮+完成时间(HH:MM);对话工具栏分享(弹窗预览一键复制全文)与清空从头对话
This commit is contained in:
@@ -25,6 +25,18 @@ main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 16
|
||||
|
||||
/* ---------- 对话 ---------- */
|
||||
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 190px); min-height: 480px; }
|
||||
.chat-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; padding: 0 4px; }
|
||||
.ct-title { color: var(--sub); font-size: 13px; font-weight: 600; letter-spacing: 1px; }
|
||||
.tool-btn { background: var(--bg2); border: 1px solid var(--line); color: var(--sub); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; margin-left: 6px; transition: .15s; }
|
||||
.tool-btn:hover { color: var(--orange2); border-color: var(--orange2); }
|
||||
.msg-body { flex: 1; min-width: 0; }
|
||||
.msg-actions { display: flex; align-items: center; gap: 2px; margin-top: 5px; padding-left: 4px; opacity: .8; }
|
||||
.msg.user .msg-actions { justify-content: flex-end; padding-left: 0; padding-right: 4px; }
|
||||
.act-btn { background: transparent; border: none; color: var(--sub); font-size: 13px; cursor: pointer; padding: 3px 6px; border-radius: 6px; line-height: 1; transition: .15s; }
|
||||
.act-btn:hover { color: var(--orange2); background: rgba(249,115,22,.12); }
|
||||
.msg-time { font-size: 11px; color: var(--sub); margin-left: 6px; }
|
||||
#toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(12px); background: var(--bg2); border: 1px solid var(--line); color: var(--txt); padding: 9px 20px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 300; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
|
||||
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
|
||||
.chat-list { flex: 1; overflow-y: auto; padding: 8px 4px 16px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
|
||||
.msg { display: flex; gap: 10px; max-width: 88%; }
|
||||
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
|
||||
|
||||
Reference in New Issue
Block a user