v1.2.1 - Fix session data loss on switch, add terminal panel for coding/agentic modes

This commit is contained in:
admin
2026-05-19 15:28:15 +04:00
Unverified
parent d62a850ac5
commit 9f7e3b03ae
6 changed files with 456 additions and 12 deletions

View File

@@ -693,6 +693,155 @@ a:hover { text-decoration: underline; }
font-size: 12px;
}
.terminal-panel {
display: none;
flex-direction: column;
background: var(--bg-code);
border-top: 1px solid var(--border);
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
flex-shrink: 0;
}
.terminal-panel.open {
max-height: 45vh;
}
.terminal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
background: var(--bg-tertiary);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.terminal-title {
font-size: 12px;
font-weight: 700;
color: var(--success);
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'Fira Code', 'JetBrains Mono', monospace;
}
.terminal-info {
font-size: 11px;
color: var(--text-muted);
font-family: monospace;
}
.terminal-body {
overflow-y: auto;
padding: 8px;
font-family: 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
font-size: 12px;
line-height: 1.5;
flex: 1;
min-height: 60px;
max-height: calc(45vh - 40px);
}
.term-empty {
color: var(--text-muted);
text-align: center;
padding: 20px;
font-size: 12px;
}
.term-entry {
margin-bottom: 8px;
border-radius: 6px;
overflow: hidden;
border: 1px solid var(--border);
}
.term-tool {
background: var(--bg-secondary);
}
.term-tool-header {
padding: 6px 10px;
font-size: 11px;
font-weight: 700;
font-family: monospace;
background: var(--bg-tertiary);
}
.term-action {
font-weight: 800;
letter-spacing: 0.5px;
}
.term-target {
color: var(--text-secondary);
font-weight: 400;
margin-left: 4px;
word-break: break-all;
}
.term-code-block {
background: var(--bg-secondary);
}
.term-file-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px 10px;
background: var(--bg-tertiary);
border-bottom: 1px solid var(--border);
}
.term-lang {
font-size: 11px;
color: var(--accent);
font-weight: 600;
}
.term-copy-btn {
background: var(--accent-dim);
border: none;
color: var(--accent);
padding: 2px 8px;
border-radius: 3px;
font-size: 10px;
cursor: pointer;
font-family: inherit;
}
.term-copy-btn:hover { background: var(--accent); color: white; }
.term-code {
padding: 8px 10px;
margin: 0;
font-size: 11px;
line-height: 1.4;
color: var(--text-primary);
white-space: pre-wrap;
word-break: break-all;
overflow-x: auto;
max-height: 200px;
overflow-y: auto;
background: transparent;
}
.terminal-toggle-btn {
display: none;
align-items: center;
justify-content: center;
gap: 6px;
width: 100%;
padding: 8px;
background: var(--bg-tertiary);
border: none;
border-top: 1px solid var(--border);
color: var(--text-secondary);
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all var(--transition);
flex-shrink: 0;
}
.terminal-toggle-btn:hover {
background: var(--accent-dim);
color: var(--accent);
}
.terminal-icon {
font-size: 10px;
}
.terminal-label {
font-family: 'Fira Code', monospace;
text-transform: uppercase;
letter-spacing: 0.5px;
font-size: 11px;
}
/* Responsive */
@media (max-width: 480px) {
.message { max-width: 92%; }