mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-03-23 23:59:24 +08:00
The toolbar container used `justify-end` which caused content to overflow to the left side. Browser `scrollWidth` does not account for left-side overflow, so `useAutoCompact` could never detect it and compact mode never activated — resulting in clipped tab labels (e.g. "aude" instead of "Claude") at minimum window width. Fix: remove `justify-end` from the toolbar container and use `ml-auto` on the child element instead. This keeps the right-aligned appearance but makes overflow go rightward, where `scrollWidth` correctly detects it and triggers compact mode. Co-authored-by: zuolan <zuolan1102@qq.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
296 B
Plaintext
27 lines
296 B
Plaintext
node_modules/
|
|
dist/
|
|
release/
|
|
.DS_Store
|
|
*.log
|
|
.env
|
|
.env.local
|
|
*.tsbuildinfo
|
|
.npmrc
|
|
CLAUDE.md
|
|
# AGENTS.md
|
|
GEMINI.md
|
|
/.claude
|
|
/.codex
|
|
/.gemini
|
|
/.cc-switch
|
|
/.idea
|
|
/.vscode
|
|
vitest-report.json
|
|
nul
|
|
|
|
# Flatpak build artifacts
|
|
flatpak/cc-switch.deb
|
|
flatpak-build/
|
|
flatpak-repo/
|
|
.worktrees/
|
|
.spec-workflow/ |