manojshetty2004 opened a new pull request, #36229: URL: https://github.com/apache/superset/pull/36229
### Summary When Superset dashboards are embedded into an external application via DOM injection (non-iframe), host CSS (such as resets from Angular/React/Tailwind/Bootstrap) can override Superset’s grid layout styles. This causes charts to appear jammed together with no spacing. This PR adds a small, scoped LESS stylesheet (`embed-overrides.less`) that restores dashboard spacing **only when** the embed wrapper uses `.superset-embed`. ### Changes - Added `superset-frontend/src/assets/styles/embed-overrides.less` - Applied minimal CSS rules under `.superset-embed` to preserve dashboard grid gap and container shrink behavior. - The fix is isolated and does not affect normal Superset dashboards. ### How to verify 1. Embed a dashboard into an external application. 2. Wrap the mount container with: ```html <div class="superset-embed"> ``` <img width="1944" height="1084" alt="516834543-b26a27f0-47bc-4ccb-b7cd-8167681b53b8" src="https://github.com/user-attachments/assets/651d6b4a-fe49-4fd4-b24f-79693024631f" /> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
