v2: 同步 index 的回底浮动钮/工具卡样式/双击与图片缩放查看/phase-bar,移除消息删除入口
This commit is contained in:
@@ -304,11 +304,105 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0
|
||||
position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
|
||||
background: rgba(15, 17, 21, .88); color: #fff;
|
||||
padding: 9px 16px; border-radius: 10px; font-size: 13px;
|
||||
z-index: 90; pointer-events: none; transition: opacity .2s;
|
||||
z-index: 200; pointer-events: none; transition: opacity .2s;
|
||||
}
|
||||
|
||||
/* ================= 工具调用行(v2 轻量展示,替代工具卡片) ================= */
|
||||
.tool-line { font-size: 12px; color: var(--gray); line-height: 1.6; padding: 2px 0; }
|
||||
/* ================= 回到底部浮动按钮(同步 index 右下角导航浮动图标) ================= */
|
||||
.scroll-bottom-btn {
|
||||
position: absolute; right: 14px; bottom: 130px;
|
||||
width: 38px; height: 38px; border-radius: 50%;
|
||||
border: none; cursor: pointer; padding: 0;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: #fff; box-shadow: 0 2px 8px rgba(30,40,90,0.18);
|
||||
z-index: 30; opacity: 0.95;
|
||||
}
|
||||
.scroll-bottom-btn:active { opacity: 1; }
|
||||
.scroll-bottom-btn svg { width: 20px; height: 20px; fill: none; stroke: #556; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
||||
.scroll-bottom-btn .sb-spinner { animation: sb-spin 0.8s linear infinite; }
|
||||
.scroll-bottom-btn .sb-spinner circle { stroke: #dde; stroke-width: 2.5; fill: none; }
|
||||
.scroll-bottom-btn .sb-spinner path { stroke: #3964FE; stroke-width: 2.5; stroke-linecap: round; fill: none; }
|
||||
@keyframes sb-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
|
||||
|
||||
/* ================= 会话状态栏(phase-bar,搬自 style.css) ================= */
|
||||
.phase-bar {
|
||||
flex: none; display: flex; align-items: center; gap: 2px;
|
||||
padding: 6px 12px; background: var(--page); border-bottom: 1px solid var(--border);
|
||||
}
|
||||
/* 状态栏随会话状态染色:执行中=绿底、保持中=黄底 */
|
||||
.phase-bar.active { background: #f0f9f2; border-bottom-color: #cde8d3; }
|
||||
.phase-bar.held { background: #fffbe8; border-bottom-color: #f5e3b3; }
|
||||
.status-pill {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
font-size: 12px; padding: 3px 10px; border-radius: 10px;
|
||||
background: #eceff5; color: #5c6674;
|
||||
min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||||
}
|
||||
.status-pill::before {
|
||||
content: ''; width: 7px; height: 7px; border-radius: 50%;
|
||||
background: currentColor; flex-shrink: 0;
|
||||
}
|
||||
.status-pill.active { background: #e3f2e6; color: #1c7a2e; }
|
||||
.status-pill.active::before { animation: pill-pulse 1.2s ease-in-out infinite; }
|
||||
.status-pill.held { background: #fff4dc; color: #8a6400; }
|
||||
.status-pill.queued { background: #e9edff; color: var(--active); }
|
||||
.status-pill.cancelled { background: #fdecea; color: #b3382c; }
|
||||
@keyframes pill-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
|
||||
.stop-link {
|
||||
background: none; border: none; cursor: pointer; flex: none;
|
||||
color: #c33; font-size: 12px; padding: 4px 6px;
|
||||
}
|
||||
.stop-link.muted { color: #8a6400; }
|
||||
.stop-link:active { opacity: 0.6; }
|
||||
/* 「清空」钮推到状态栏最右 */
|
||||
#clear-msg-btn { margin-left: auto; color: #b3382c; }
|
||||
|
||||
/* ================= 工具调用卡片(样式/交互同步 index 的 .tool-card) ================= */
|
||||
.tool-card {
|
||||
align-self: stretch; max-width: 100%;
|
||||
background: #fbf7ee; border: 1px solid #eadfc4; border-radius: 10px;
|
||||
padding: 8px 12px; font-size: 13px; color: #6b5b2a;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.tool-card .tool-name { font-weight: 600; }
|
||||
.tool-card summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: center; }
|
||||
.tool-card summary::-webkit-details-marker { display: none; }
|
||||
.tool-card .tool-args { color: #8a763b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; font-size: 12px; }
|
||||
.tool-card pre {
|
||||
background: #f6f1e3; padding: 8px; border-radius: 8px; margin-top: 6px;
|
||||
white-space: pre-wrap; overflow-x: auto; max-height: 300px; overflow-y: auto;
|
||||
font-size: 12px; color: #55492a;
|
||||
}
|
||||
.tool-card .tool-time {
|
||||
color: #b3a97f; margin-top: 6px; font-size: 11px;
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
}
|
||||
.tool-card .tool-time .act { display: inline-flex; color: #b3a97f; padding: 2px; border-radius: 4px; }
|
||||
.tool-card .tool-time .act svg { width: 12px; height: 12px; }
|
||||
.tool-card .tool-time .act.copied { color: #2e7d32; }
|
||||
.tool-card.error { background: #fdecea; border-color: #f2c4bd; color: #a3352a; }
|
||||
.tool-card .spin { display: inline-block; width: 1em; text-align: center; }
|
||||
.tool-card .tool-args-full { color: #6b5b2a; }
|
||||
/* 工具结果里的图片(read_file 读图回传;点击放大查看) */
|
||||
.tool-img {
|
||||
display: block; max-width: 240px; max-height: 240px;
|
||||
border-radius: 6px; margin-top: 6px; cursor: zoom-in;
|
||||
}
|
||||
|
||||
/* ================= 全屏查看器(搬自 index;图片单点放大+缩放,消息双击放大) ================= */
|
||||
#img-viewer { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,0.93); display: flex; align-items: center; justify-content: center; overflow: hidden; }
|
||||
#img-viewer.hidden { display: none; }
|
||||
#img-viewer-img { max-width: 92vw; max-height: 88vh; touch-action: none; cursor: grab; user-select: none; -webkit-user-drag: none; }
|
||||
#fs-viewer { position: fixed; inset: 0; z-index: 130; background: rgba(8,10,20,0.88); padding: 40px 14px 24px; overflow: auto; /* 缩放后支持横纵滚动 */ }
|
||||
#fs-viewer.hidden { display: none; }
|
||||
.fs-panel { max-width: 860px; margin: 0 auto; background: var(--page); 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;
|
||||
}
|
||||
#fs-body .bubble-ai, #fs-body .bubble-user { max-width: 100%; box-shadow: none; }
|
||||
#fs-body .tool-card { max-width: 100%; }
|
||||
#fs-body .tool-card pre { max-height: 65vh; }
|
||||
|
||||
/* ================= 设置区(覆盖层页面;卡片/表单样式搬自 style.css 适配 v2 变量) ================= */
|
||||
#settings-page {
|
||||
|
||||
Reference in New Issue
Block a user