Add queued sending for Codex App drafts
Also include WebSocket heartbeat handling to keep idle connections healthy.
This commit is contained in:
132
public/style.css
132
public/style.css
@@ -1044,6 +1044,7 @@ body.session-loading-active {
|
||||
.session-search {
|
||||
position: relative;
|
||||
margin-top: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
.session-search::before {
|
||||
content: '⌕';
|
||||
@@ -1058,6 +1059,9 @@ body.session-loading-active {
|
||||
pointer-events: none;
|
||||
}
|
||||
.session-search-input {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
padding: 0 34px 0 30px;
|
||||
@@ -1073,6 +1077,13 @@ body.session-loading-active {
|
||||
.session-search-input::placeholder {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.session-search-input::-webkit-search-decoration,
|
||||
.session-search-input::-webkit-search-cancel-button,
|
||||
.session-search-input::-webkit-search-results-button,
|
||||
.session-search-input::-webkit-search-results-decoration {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
.session-search-input:focus {
|
||||
background: var(--bg-primary);
|
||||
border-color: rgba(192, 85, 58, 0.34);
|
||||
@@ -1083,6 +1094,7 @@ body.session-loading-active {
|
||||
right: 6px;
|
||||
top: 50%;
|
||||
z-index: 2;
|
||||
transform: translateY(-50%);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -2454,9 +2466,24 @@ body.session-loading-active {
|
||||
border-color: var(--note-accent);
|
||||
color: var(--note-accent);
|
||||
}
|
||||
.note-action:disabled {
|
||||
opacity: 0.42;
|
||||
cursor: default;
|
||||
pointer-events: none;
|
||||
}
|
||||
.note-action:active {
|
||||
transform: scale(0.96);
|
||||
}
|
||||
.note-action.queue {
|
||||
background: var(--note-bg-strong);
|
||||
border-color: var(--note-border);
|
||||
color: var(--note-accent);
|
||||
}
|
||||
.note-action.queue:hover {
|
||||
background: var(--note-accent);
|
||||
border-color: transparent;
|
||||
color: #fff;
|
||||
}
|
||||
.note-action.send,
|
||||
.note-action.save {
|
||||
background: var(--note-accent);
|
||||
@@ -2723,6 +2750,63 @@ html[data-divider-time='hide'] .msg-bubble .agent-message-divider span {
|
||||
.code-block-wrapper.preview-mode .code-preview-pane { display: block; }
|
||||
.code-block-wrapper.preview-mode pre { display: none; }
|
||||
|
||||
.mermaid-code-block .code-block-actions {
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.mermaid-code-block.mermaid-diagram-mode pre {
|
||||
display: none;
|
||||
}
|
||||
.mermaid-code-block.mermaid-source-mode .mermaid-render-pane {
|
||||
display: none;
|
||||
}
|
||||
.mermaid-render-pane {
|
||||
position: relative;
|
||||
min-height: 120px;
|
||||
padding: 18px;
|
||||
overflow: auto;
|
||||
background: #fff;
|
||||
border-top: 1px solid var(--border-color);
|
||||
color: #1f2933;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.mermaid-render-pane[data-render-state='pending']::before {
|
||||
content: '图形渲染中...';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 18px;
|
||||
color: #6b7280;
|
||||
font-size: 13px;
|
||||
}
|
||||
.mermaid-render-pane[data-render-state='rendered']::before,
|
||||
.mermaid-render-pane[data-render-state='error']::before {
|
||||
content: none;
|
||||
}
|
||||
.mermaid-render-target {
|
||||
min-width: min-content;
|
||||
min-height: 80px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.mermaid-render-target svg {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.mermaid-render-error {
|
||||
padding: 12px;
|
||||
border: 1px solid rgba(220, 53, 69, 0.28);
|
||||
border-radius: 8px;
|
||||
background: rgba(220, 53, 69, 0.08);
|
||||
color: #b42318;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
@media (pointer: coarse) {
|
||||
.code-block-header {
|
||||
padding: 8px 10px;
|
||||
@@ -3305,6 +3389,18 @@ html[data-divider-time='hide'] .msg-bubble .agent-message-divider span {
|
||||
color: var(--text-primary);
|
||||
box-shadow: 0 8px 18px rgba(45, 31, 20, 0.05);
|
||||
}
|
||||
.queued-message .queue-avatar {
|
||||
background: var(--accent);
|
||||
}
|
||||
.queued-message .queue-bubble {
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent),
|
||||
var(--accent-light);
|
||||
border-color: rgba(192, 85, 58, 0.2);
|
||||
}
|
||||
.queued-message .queue-meta {
|
||||
color: var(--accent);
|
||||
}
|
||||
.input-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -3381,8 +3477,32 @@ html[data-divider-time='hide'] .msg-bubble .agent-message-divider span {
|
||||
background: var(--note-accent-hover);
|
||||
color: #fff;
|
||||
}
|
||||
.queue-send-btn {
|
||||
appearance: none;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 10px;
|
||||
background: var(--info);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
flex-shrink: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
|
||||
}
|
||||
.queue-send-btn:hover {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
}
|
||||
.queue-send-btn:active {
|
||||
transform: scale(0.92);
|
||||
}
|
||||
.attach-btn:disabled,
|
||||
.note-mode-btn:disabled {
|
||||
.note-mode-btn:disabled,
|
||||
.queue-send-btn:disabled {
|
||||
opacity: 0.45;
|
||||
cursor: default;
|
||||
}
|
||||
@@ -3576,7 +3696,8 @@ html[data-divider-time='hide'] .msg-bubble .agent-message-divider span {
|
||||
.code-block-wrapper pre code { font-size: 12px; }
|
||||
.input-wrapper { padding: 6px 10px; border-radius: 12px; }
|
||||
.attach-btn { width: 34px; height: 34px; border-radius: 10px; }
|
||||
.note-mode-btn { width: 34px; height: 34px; border-radius: 10px; }
|
||||
.note-mode-btn,
|
||||
.queue-send-btn { width: 34px; height: 34px; border-radius: 10px; }
|
||||
.send-btn, .abort-btn { width: 34px; height: 34px; }
|
||||
.pending-notes-tray { max-height: 34vh; margin-bottom: 8px; }
|
||||
.pending-note { grid-template-columns: 26px minmax(0, 1fr); gap: 7px; }
|
||||
@@ -5413,6 +5534,7 @@ html[data-theme='coolvibe'] .settings-back:hover {
|
||||
}
|
||||
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .note-mode-btn,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .queue-send-btn,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .send-btn.note-send {
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
@@ -5456,6 +5578,12 @@ html[data-theme='coolvibe'] .settings-back:hover {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .queued-message .queue-bubble {
|
||||
background: var(--accent-light);
|
||||
border-color: var(--border-color);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .settings-inline-note code,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .tool-call-code {
|
||||
background: rgba(0, 0, 0, 0.22);
|
||||
|
||||
Reference in New Issue
Block a user