mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-17 21:10:48 +00:00
* feat: add stable CSS hooks to tab components (#714) Expose stable attributes on every tab-like element so custom CSS can target them reliably without chaining utility-class selectors or relying on inline-style substring matches: - data-tab-id: already present on session/workspace/logView/sftp tabs; now also added to the side-panel buttons (sftp/scripts/theme/ai) in TerminalLayer.tsx. - data-tab-type: session | workspace | logView | sftp | sidepanel, lets a selector target one tab family without matching the rest. - data-state: active | inactive, mirroring Radix Tabs' convention so users who already style Settings tabs can reuse the same idiom. - .netcatty-tab class: a single, scope-free hook for "every tab, anywhere" — pairs with data-state="active" for the common "style the selected tab" recipe. No visual changes. The existing inline-style / utility-class selectors the issue reporter had to chain ([style*="var(--top-tabs-active-bg"], .app-no-drag.relative.h-7.px-3, etc.) keep working, so no breakage for people who've already written custom CSS. Custom CSS can now be written as: .netcatty-tab[data-state="active"] { ... } [data-tab-type="sftp"][data-state="active"] { ... } [data-tab-id="ai"][data-state="active"] { ... } Closes #714 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: add CSS hooks to the root Vaults/SFTP tabs (#714) The fixed-left root tabs ("Vaults" and "SFTP") in TopTabs.tsx were missed in the first pass — they don't go through the session / workspace / logView branches, so their div rendered without the new data-tab-id / data-tab-type / data-state attributes or the .netcatty-tab class. Add them so custom CSS can target the whole root tab row the same way: [data-tab-type="root"][data-state="active"] { ... } [data-tab-id="vault"] { ... } [data-tab-id="sftp"] { ... } No visual change. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>