GitHub user dosubot[bot] added a comment to the discussion: How to adjust width of the superset logo in UI?
<!-- Answer --> To adjust the width of your logo, you need to set the `brandIconMaxWidth` theme token. The logo container's max-width is controlled by this value (default is `37` pixels), which is likely truncating your horizontal logo [[1]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/packages/superset-ui-core/src/theme/Theme.tsx). Update your `THEME_DEFAULT` to include it: ```python THEME_DEFAULT = { "token": { "brandAppName": APP_NAME, "brandLogoAlt": APP_NAME, "brandIconMaxWidth": 80, # increase this to fit your logo width }, } ``` You can also control the logo height with `brandLogoHeight`: ```python THEME_DEFAULT = { "token": { "brandAppName": APP_NAME, "brandLogoAlt": APP_NAME, "brandIconMaxWidth": 80, "brandLogoHeight": "28px", }, } ``` The logo uses `object-fit: contain`, so it will scale proportionally within the container [[2]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/features/home/Menu.tsx). Adjust `brandIconMaxWidth` until your logo displays at the desired size. The actual pixel width applied is `sizeUnit * brandIconMaxWidth`, so you may need to experiment with the value. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).* --- Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset). [](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=de3ff900-fde9-4b4b-97be-c4b3e9f78c54) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset) GitHub link: https://github.com/apache/superset/discussions/40010#discussioncomment-16875810 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
