fix: 消除会话列表解析阻塞并按需加载工具详情

This commit is contained in:
shiyue
2026-10-19 10:58:22 +08:00
parent fb2c3360c9
commit 99cc807f4b
35 changed files with 1468 additions and 214 deletions

View File

@@ -5960,6 +5960,10 @@ html[data-theme='coolvibe'] .settings-back:hover {
object-fit: contain;
background: #111;
}
.attachment-preview-image[hidden],
.attachment-preview-placeholder[hidden] {
display: none;
}
.attachment-preview-meta {
display: flex;
flex-direction: column;
@@ -5974,6 +5978,80 @@ html[data-theme='coolvibe'] .settings-back:hover {
color: var(--text-secondary);
font-size: 12px;
}
.attachment-preview-overlay.is-fullscreen {
padding: 0;
background: #111;
z-index: 510;
}
.attachment-preview-overlay.is-fullscreen .attachment-preview-panel {
width: 100%;
max-width: none;
height: 100vh;
height: 100dvh;
max-height: 100vh;
max-height: 100dvh;
border: 0;
border-radius: 0;
}
.attachment-preview-overlay.is-fullscreen .modal-header {
padding-top: max(12px, env(safe-area-inset-top));
}
.attachment-preview-overlay.is-fullscreen .attachment-preview-body {
flex: 1;
min-height: 0;
gap: 10px;
padding: 12px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.attachment-preview-overlay.is-fullscreen .attachment-preview-stage {
flex: 1;
min-height: 0;
max-height: none;
border-radius: 8px;
}
.attachment-preview-overlay.is-fullscreen .attachment-preview-image {
height: 100%;
max-height: none;
}
.attachment-preview-overlay.is-fullscreen .attachment-preview-meta {
flex-shrink: 0;
min-width: 0;
}
.attachment-preview-overlay.is-fullscreen .attachment-preview-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.attachment-preview-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 1;
display: grid;
place-items: center;
width: 44px;
height: 44px;
padding: 0;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 8px;
color: #fff;
background: rgba(0, 0, 0, 0.65);
font-size: 24px;
cursor: pointer;
touch-action: manipulation;
}
.attachment-preview-previous { left: 12px; }
.attachment-preview-next { right: 12px; }
.attachment-preview-nav:hover:not(:disabled) {
background: rgba(0, 0, 0, 0.9);
}
.attachment-preview-nav:disabled {
opacity: 0.25;
cursor: default;
}
.attachment-preview-nav:focus-visible {
outline: 2px solid #fff;
outline-offset: 2px;
}
.modal-footer {
display: flex;
justify-content: flex-end;
@@ -7436,7 +7514,15 @@ textarea.codex-elicitation-input {
justify-content: center;
overflow: auto;
padding: 14px;
width: 100%;
border: 0;
border-radius: 0;
background: var(--bg-primary);
cursor: zoom-in;
}
.file-browser-preview-image:focus-visible {
outline: 2px solid var(--text-secondary);
outline-offset: -3px;
}
.file-browser-preview-image[hidden] {
display: none;