docs: fix sidebar overflow at mid-width viewports and add a favicon (#2426)

This commit is contained in:
Max 2026-07-02 20:38:50 +01:00 • committed by GitHub
commit 43c13c5fd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,9 +13,16 @@
* which forces horizontal scrolling on most of our ~100-column code blocks.
* Let the layout breathe and the column grow so typical snippets fit;
* genuinely long lines still scroll inside their own block.
*
* Clamped to the viewport because the default theme's `(min-width: 1440px)`
* rules size the sidebar and nav title as
* `calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + ...)`, which goes
* negative on viewports narrower than the max width: the sidebar collapses
* and the site title spills over the search bar. With the clamp, those rules
* resolve to their stock sub-1440px values on narrower viewports instead.
*/
:root {
--vp-layout-max-width: 1680px;
--vp-layout-max-width: min(100vw, 1680px);
}
/* !important: the default rule is a scoped component style ([data-v-…]), which