You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 02:58:43 UTC
Re: [D] Is it possible to adjust the width of the filter box [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Is it possible to adjust the width of the filter box
<!-- Answer -->
Yes, it's possible to adjust the width of the filter box in Superset dashboards. The current filter controls use Emotion CSS for styling, so you can customize the width by overriding or extending the relevant styles. For example, filter items are wrapped in a div with the class `filter-item-wrapper` and a style of `flex-shrink: 0`, which prevents them from shrinking below their content size. You can target this class or use custom CSS in your dashboard to set a specific width or max-width for the filter box. More details on how Superset uses Emotion CSS for component styling are available in the [styling guidelines](https://github.com/apache/superset/wiki/Emotion-Styling-Guidelines-and-Best-Practices), and you can see how the filter controls are implemented [here](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterControls/FilterControls.tsx).
If you use custom CSS, make sure your styles have enough specificity and load after Superset's default styles. For more tips on dashboard CSS customization, check out the [Preset blog guide](https://preset.io/blog/customizing-superset-dashboards-with-css/) as well.
<!-- 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).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-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=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=69df554b-362b-47c9-9b0c-44adf2a034e3) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-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=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/35023#discussioncomment-14313153
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org