feat: reduce default font size and persist tabs across refresh

- Default terminal font 14px → 12px, min 10px → 8px
- Save tab metadata to localStorage on every render
- Restore ended sessions as dimmed tabs after page refresh
- Ended tabs show "Session ended" message on click
This commit is contained in:
zhouyuan
2026-03-10 14:30:21 +08:00
parent 05eba70598
commit 06f7d40c42
2 changed files with 49 additions and 6 deletions
+2
View File
@@ -266,6 +266,8 @@ body {
will-change: opacity;
}
.session-tab .tab-status.error { background: var(--red); }
.session-tab .tab-status.ended { background: var(--text-muted); opacity: 0.5; }
.session-tab[data-ended] { opacity: 0.55; }
/* Session color coding - left border indicator */
.session-tab[data-color="red"] { border-left: 3px solid var(--session-red); }