feat: update session workspace flow and web ui
This commit is contained in:
381
public/style.css
381
public/style.css
@@ -1790,6 +1790,10 @@ body.session-loading-active {
|
||||
.session-item-actions { display: flex; }
|
||||
.cmd-menu { left: 10px; right: 10px; transform: none; min-width: auto; bottom: 72px; }
|
||||
.option-picker { left: 10px; right: 10px; transform: none; min-width: auto; bottom: 72px; }
|
||||
.chat-header {
|
||||
padding: 0 10px;
|
||||
gap: 6px;
|
||||
}
|
||||
.chat-title {
|
||||
font-size: 13px;
|
||||
}
|
||||
@@ -1800,8 +1804,17 @@ body.session-loading-active {
|
||||
right: 10px;
|
||||
min-width: 138px;
|
||||
}
|
||||
.chat-runtime-state {
|
||||
padding: 2px 8px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.chat-cwd {
|
||||
max-width: 120px;
|
||||
max-width: 92px;
|
||||
flex-shrink: 1;
|
||||
}
|
||||
.mode-select {
|
||||
padding: 4px 20px 4px 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1817,6 +1830,11 @@ body.session-loading-active {
|
||||
.new-chat-btn,
|
||||
.new-chat-arrow { min-height: 44px; }
|
||||
.new-chat-arrow { width: 48px; }
|
||||
.chat-cwd {
|
||||
max-width: 72px;
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
/* === Utility === */
|
||||
@@ -2379,6 +2397,8 @@ html[data-theme='coolvibe'] .settings-back:hover {
|
||||
|
||||
/* === Chat CWD label === */
|
||||
.chat-cwd {
|
||||
appearance: none;
|
||||
border: none;
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
background: var(--bg-tertiary);
|
||||
@@ -2389,8 +2409,18 @@ html[data-theme='coolvibe'] .settings-back:hover {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
cursor: default;
|
||||
font-family: inherit;
|
||||
line-height: 1.25;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
}
|
||||
.chat-cwd:hover { background: var(--accent-light); color: var(--accent); }
|
||||
.chat-cwd:focus-visible {
|
||||
outline: 2px solid rgba(192, 85, 58, 0.24);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.chat-cwd:disabled { cursor: default; opacity: 0.7; }
|
||||
|
||||
/* === Modal Overlay === */
|
||||
.modal-overlay {
|
||||
@@ -2519,6 +2549,42 @@ html[data-theme='coolvibe'] .settings-back:hover {
|
||||
transition: background 0.2s;
|
||||
}
|
||||
.modal-btn-secondary:hover { background: var(--bg-secondary); }
|
||||
.modal-btn-inline {
|
||||
flex: 0 0 auto;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.modal-field-hint {
|
||||
margin-top: 8px;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.5;
|
||||
word-break: break-all;
|
||||
}
|
||||
.modal-quick-picks {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.modal-quick-pick {
|
||||
max-width: 100%;
|
||||
padding: 7px 10px;
|
||||
border: 1px solid rgba(192, 85, 58, 0.14);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 252, 248, 0.96);
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, color 0.15s, border-color 0.15s;
|
||||
word-break: break-all;
|
||||
}
|
||||
.modal-quick-pick:hover {
|
||||
background: var(--accent-light);
|
||||
color: var(--accent);
|
||||
border-color: rgba(192, 85, 58, 0.24);
|
||||
}
|
||||
.modal-loading, .modal-empty {
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
@@ -2595,4 +2661,315 @@ html[data-theme='coolvibe'] .settings-back:hover {
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
/* Todo List */
|
||||
.todo-list-container {
|
||||
margin: 12px 0;
|
||||
padding: 12px;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--bg-tertiary);
|
||||
}
|
||||
.todo-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.todo-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid var(--bg-tertiary);
|
||||
}
|
||||
.todo-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.todo-checkbox {
|
||||
flex-shrink: 0;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.todo-text {
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
color: var(--text-primary);
|
||||
line-height: 1.5;
|
||||
}
|
||||
.todo-item.completed .todo-text {
|
||||
text-decoration: line-through;
|
||||
color: var(--text-muted);
|
||||
opacity: 0.6;
|
||||
}
|
||||
.import-item-btn:hover { background: var(--accent-hover); }
|
||||
|
||||
/* === File Browser === */
|
||||
.directory-picker-panel,
|
||||
.file-browser-panel {
|
||||
max-width: 980px;
|
||||
height: min(82vh, 760px);
|
||||
}
|
||||
.file-browser-body {
|
||||
padding: 16px 18px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
min-height: 0;
|
||||
}
|
||||
.file-browser-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.file-browser-toolbar-btn {
|
||||
appearance: none;
|
||||
border: 1px solid var(--border-color);
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text-primary);
|
||||
border-radius: 10px;
|
||||
padding: 8px 12px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
}
|
||||
.file-browser-toolbar-btn:hover:not(:disabled) {
|
||||
background: var(--accent-light);
|
||||
color: var(--accent);
|
||||
}
|
||||
.file-browser-toolbar-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.file-browser-path {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
padding: 9px 12px;
|
||||
border-radius: 10px;
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
line-height: 1.45;
|
||||
word-break: break-all;
|
||||
}
|
||||
.file-browser-status {
|
||||
min-height: 18px;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.file-browser-status[data-state='error'] {
|
||||
color: var(--danger);
|
||||
}
|
||||
.file-browser-layout {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
}
|
||||
.file-browser-pane {
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 14px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-primary);
|
||||
}
|
||||
.file-browser-pane-title {
|
||||
padding: 12px 14px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.file-browser-list {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
.file-browser-item {
|
||||
appearance: none;
|
||||
width: 100%;
|
||||
border: none;
|
||||
background: transparent;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
padding: 10px 12px;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
.file-browser-item:hover {
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
.file-browser-item.active {
|
||||
background: var(--accent-light);
|
||||
}
|
||||
.file-browser-item-icon {
|
||||
min-width: 42px;
|
||||
height: 24px;
|
||||
border-radius: 999px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(192, 85, 58, 0.12);
|
||||
border: 1px solid rgba(192, 85, 58, 0.16);
|
||||
color: var(--accent);
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
.file-browser-item.directory .file-browser-item-icon {
|
||||
background: rgba(93, 138, 84, 0.12);
|
||||
border-color: rgba(93, 138, 84, 0.18);
|
||||
color: #4e7f46;
|
||||
}
|
||||
.file-browser-item-copy {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
.file-browser-item-name {
|
||||
font-size: 14px;
|
||||
color: var(--text-primary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.file-browser-item-meta {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.file-browser-preview-pane {
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.file-browser-preview-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
padding: 12px 14px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
.file-browser-preview-copy {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.file-browser-preview-title {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.file-browser-preview-meta {
|
||||
margin-top: 4px;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.file-browser-mobile-back {
|
||||
display: none;
|
||||
appearance: none;
|
||||
border: 1px solid var(--border-color);
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text-primary);
|
||||
border-radius: 10px;
|
||||
padding: 7px 10px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.file-browser-preview-empty {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
padding: 24px;
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.file-browser-preview-content {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
margin: 0;
|
||||
padding: 14px 16px;
|
||||
overflow: auto;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
font-size: 13px;
|
||||
line-height: 1.65;
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-primary);
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.modal-field-row {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.modal-btn-inline {
|
||||
width: 100%;
|
||||
}
|
||||
.file-browser-panel {
|
||||
max-width: none;
|
||||
width: 100%;
|
||||
height: calc(100vh - 20px);
|
||||
}
|
||||
.directory-picker-panel {
|
||||
max-width: none;
|
||||
width: 100%;
|
||||
height: calc(100vh - 20px);
|
||||
}
|
||||
.file-browser-body {
|
||||
padding: 14px;
|
||||
}
|
||||
.file-browser-toolbar {
|
||||
align-items: stretch;
|
||||
}
|
||||
.file-browser-path {
|
||||
width: 100%;
|
||||
order: 3;
|
||||
}
|
||||
.file-browser-layout {
|
||||
display: block;
|
||||
}
|
||||
.file-browser-panel:not(.preview-active) .file-browser-preview-pane {
|
||||
display: none;
|
||||
}
|
||||
.file-browser-panel.preview-active .file-browser-list-pane {
|
||||
display: none;
|
||||
}
|
||||
.file-browser-mobile-back {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.file-browser-preview-header {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user