Skip to content
Discussion options

You must be logged in to vote

Thanks for confirming — 1200×235 is a ~5.1:1 aspect ratio (very wide, short), which is not inherently a problem. Here's what's happening in the code and what to try:

The navbar renders your logo inside a Typography.Link with className="navbar-brand". When theme.brandLogoUrl is set, the wrapper gets an inline style with height: theme.brandLogoHeight (and minHeight: '0px'), but no explicit width on the <img> [1]. The .navbar-brand CSS rule provides max-width: ${theme.sizeUnit * theme.brandIconMaxWidth}px and img { height: 100%; object-fit: contain; } [2], which should constrain and aspect-preserve your logo correctly.

With sizeUnit: 4 and brandIconMaxWidth: 37, the container caps at 148px

Replies: 18 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sadpandajoe
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report
2 participants
Converted from issue

This discussion was converted from issue #43713 on August 31, 2026 17:06.