feat: improve codex app controls and recovery
This commit is contained in:
151
public/style.css
151
public/style.css
@@ -1194,32 +1194,39 @@ body.session-loading-active {
|
||||
}
|
||||
.session-item-actions {
|
||||
display: none;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
margin-left: 4px;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.session-item:hover .session-item-actions { display: flex; }
|
||||
.session-item:hover .session-item-actions,
|
||||
.session-item:focus-within .session-item-actions {
|
||||
display: flex;
|
||||
}
|
||||
.session-item-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
padding: 2px 5px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
padding: 0;
|
||||
font-size: 13px;
|
||||
border-radius: 4px;
|
||||
line-height: 1;
|
||||
}
|
||||
.session-item-btn:hover { color: var(--text-primary); background: var(--bg-tertiary); }
|
||||
.session-item-btn.copy-id {
|
||||
min-width: 24px;
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
.session-item-btn.pin {
|
||||
min-width: 24px;
|
||||
font-weight: 800;
|
||||
}
|
||||
.session-item-btn.more {
|
||||
font-size: 16px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
.session-item-btn.pin.active {
|
||||
color: var(--accent);
|
||||
background: rgba(192, 85, 58, 0.1);
|
||||
@@ -1228,7 +1235,88 @@ body.session-loading-active {
|
||||
color: var(--accent);
|
||||
background: rgba(192, 85, 58, 0.12);
|
||||
}
|
||||
.session-item-btn.delete:hover { color: var(--danger); background: var(--accent-light); }
|
||||
.session-item-more {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
}
|
||||
.session-item-menu {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: calc(100% + 6px);
|
||||
z-index: 20;
|
||||
display: none;
|
||||
min-width: 104px;
|
||||
padding: 5px;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
background: var(--bg-secondary);
|
||||
box-shadow: 0 10px 24px rgba(61, 42, 26, 0.14);
|
||||
}
|
||||
.session-item-more:hover .session-item-menu,
|
||||
.session-item-more:focus-within .session-item-menu {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
.session-item-menu-btn {
|
||||
width: 100%;
|
||||
padding: 7px 9px;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
line-height: 1.2;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.session-item-menu-btn:hover,
|
||||
.session-item-menu-btn:focus-visible {
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.session-item-menu-btn.delete:hover,
|
||||
.session-item-menu-btn.delete:focus-visible {
|
||||
background: var(--accent-light);
|
||||
color: var(--danger);
|
||||
}
|
||||
.session-list-load-more {
|
||||
width: calc(100% - 4px);
|
||||
margin: 6px 2px 10px;
|
||||
padding: 9px 10px;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
background: rgba(255, 249, 242, 0.72);
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
text-align: left;
|
||||
transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.16s;
|
||||
}
|
||||
.session-list-load-more:hover {
|
||||
background: var(--bg-tertiary);
|
||||
border-color: rgba(192, 85, 58, 0.24);
|
||||
color: var(--accent);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.session-list-load-more:focus-visible {
|
||||
outline: 2px solid rgba(192, 85, 58, 0.22);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.session-list-load-more-title {
|
||||
min-width: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.session-list-load-more-meta {
|
||||
flex-shrink: 0;
|
||||
color: var(--text-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
/* Inline edit in sidebar */
|
||||
.session-item-edit-input {
|
||||
flex: 1;
|
||||
@@ -1329,7 +1417,8 @@ body.session-loading-active {
|
||||
.chat-agent-btn:disabled,
|
||||
.chat-cwd:disabled,
|
||||
.mode-select:disabled,
|
||||
.user-outline-btn:disabled {
|
||||
.user-outline-btn:disabled,
|
||||
.reload-mcp-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default;
|
||||
}
|
||||
@@ -1428,7 +1517,8 @@ body.session-loading-active {
|
||||
display: none !important;
|
||||
}
|
||||
.cost-display:empty { display: none; }
|
||||
.user-outline-btn {
|
||||
.user-outline-btn,
|
||||
.reload-mcp-btn {
|
||||
appearance: none;
|
||||
border: 1px solid rgba(91, 126, 161, 0.22);
|
||||
border-radius: 999px;
|
||||
@@ -1446,7 +1536,8 @@ body.session-loading-active {
|
||||
display: inline-flex;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.user-outline-btn:hover {
|
||||
.user-outline-btn:hover,
|
||||
.reload-mcp-btn:hover:not(:disabled) {
|
||||
background: rgba(91, 126, 161, 0.16);
|
||||
border-color: rgba(91, 126, 161, 0.34);
|
||||
}
|
||||
@@ -1987,9 +2078,37 @@ body.session-loading-active {
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
padding: 10px 16px;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
white-space: pre-line;
|
||||
}
|
||||
.msg.system .system-message-text {
|
||||
display: block;
|
||||
padding-right: 26px;
|
||||
}
|
||||
.msg.system .system-message-close {
|
||||
align-items: center;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
font: inherit;
|
||||
font-size: 16px;
|
||||
height: 24px;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
right: 7px;
|
||||
top: 7px;
|
||||
width: 24px;
|
||||
}
|
||||
.msg.system .system-message-close:hover {
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* Markdown content */
|
||||
.msg-bubble p { margin: 0 0 8px 0; }
|
||||
@@ -2930,7 +3049,8 @@ html[data-divider-time='hide'] .msg-bubble .agent-message-divider span {
|
||||
padding: 4px 20px 4px 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.user-outline-btn {
|
||||
.user-outline-btn,
|
||||
.reload-mcp-btn {
|
||||
padding: 4px 8px;
|
||||
font-size: 10px;
|
||||
}
|
||||
@@ -2975,6 +3095,7 @@ html[data-divider-time='hide'] .msg-bubble .agent-message-divider span {
|
||||
.chat-cwd,
|
||||
.mode-select,
|
||||
.user-outline-btn,
|
||||
.reload-mcp-btn,
|
||||
.chat-runtime-state {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
@@ -4548,10 +4669,12 @@ html[data-theme='coolvibe'] .settings-back:hover {
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .session-list-empty,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .session-project-header,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .session-project-create,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .session-list-load-more,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .chat-agent-btn,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .mode-select,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .chat-cwd,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .user-outline-btn,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .reload-mcp-btn,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .user-outline-item,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .settings-back,
|
||||
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder']) .settings-nav-card,
|
||||
|
||||
Reference in New Issue
Block a user