Respect user input casing for File Explorer root header (#322961)

style: respect user input casing for File Explorer root header

Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Lee Murray
2026-06-25 16:25:07 +01:00
committed by GitHub
parent 46faa16b9c
commit a6d24e1bf4
@@ -136,6 +136,18 @@
font-size: var(--vscode-bodyFontSize-small);
}
/*
* File Explorer root header — respect the real casing of the workspace / folder
* name (user input). `text-transform: none` overrides both the base
* `uppercase` rule and the `capitalize` override above (the `:has(...)`
* argument raises specificity). System labels such as "Untitled (Workspace)"
* are already title-cased in source, so they still render correctly; only
* user-provided folder names (e.g. "vscode-dev") are left untouched.
*/
.style-override .monaco-pane-view .pane > .pane-header:has(> .icon.codicon-explorer-view-icon) > .title {
text-transform: none;
}
/*
* Drop the active-tab underline on the auxiliary bar composite header so a
* single-composite header (e.g. the secondary side bar "Chat") reads as a plain