fix: match the header logo size to the console - #649
Merged
Conversation
AbhishekDoshi26
approved these changes
Sep 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status
READY
Description
The docs header logo rendered much larger than the same wordmark in the console. Starlight's
SiteTitle.astrosizes the logo to fill the nav bar (height: calc(var(--sl-nav-height) - 2 * var(--sl-nav-pad-y))), which works out to 40px tall on desktop and 32px below the 50em breakpoint. The console renders the identical lockup at 22px ([&>svg]:h-5.5inapp/components/nav/app-sidebar.tsx).This pins
.site-title imgto1.5rem(24px) — a hair above the console's 22px, which read as slightly too small in the docs header.Both SVGs share
viewBox="0 0 642 140", so setting the height alone gives the matching width for free: 183.4px to 110.1px.Worth knowing:
--sl-nav-heightchanges there. The console has no responsive variants, so neither does this.heightis overridden. Starlight'swidth: autoandmax-width: 100%still apply, so the aspect ratio and the narrow-viewport clamp are unchanged.@layer starlight.corewithout!important. Moving it inside a layer would break that.Verified in the dev server in both light and dark themes.