From eb1487d2a8c8709f76e37668daadc95aed9a8d49 Mon Sep 17 00:00:00 2001 From: djuka Date: Wed, 18 Feb 2026 06:08:37 +0000 Subject: [PATCH] Ispravka kursora u terminalu i fokus na klik - cursorStyle: block, cursorInactiveStyle: outline - drawBoldTextInBrightColors za bolji prikaz - Klik na terminal daje fokus Co-Authored-By: Claude Opus 4.6 --- templates/chat.html | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/templates/chat.html b/templates/chat.html index 747f202..3eb4c50 100644 --- a/templates/chat.html +++ b/templates/chat.html @@ -75,14 +75,26 @@ padding: 0.5rem 0.75rem; border-top: 1px solid var(--border); font-size: 0.7rem; + display: flex; + flex-direction: column; + gap: 0.3rem; } .sidebar-footer a { - color: var(--text-muted); + color: var(--text-secondary); text-decoration: none; display: block; - padding: 0.2rem 0; + padding: 0.35rem 0.5rem; + border: 1px solid var(--border); + border-radius: 4px; + text-align: center; + cursor: pointer; + transition: all 0.15s ease; + } + .sidebar-footer a:hover { + color: var(--text-primary); + border-color: var(--accent); + background: rgba(233,69,96,0.1); } - .sidebar-footer a:hover { color: var(--accent); } /* Main area */ .main { @@ -218,8 +230,8 @@ {{end}} @@ -339,12 +351,15 @@ const term = new Terminal({ cursorBlink: true, + cursorStyle: 'block', + cursorInactiveStyle: 'outline', fontSize: 14, fontFamily: "'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace", theme: THEMES[savedTheme] || THEMES.dark, allowProposedApi: true, scrollback: 10000, convertEol: false, + drawBoldTextInBrightColors: true, }); const fitAddon = new FitAddon.FitAddon(); @@ -412,6 +427,10 @@ }); window.addEventListener('resize', function() { fitAddon.fit(); }); + + // Click on terminal area gives focus + container.addEventListener('click', function() { term.focus(); }); + connect(); // ── Sidebar ─────────────────────────────────────────