This is an automated email from the ASF dual-hosted git repository.

msyavuz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 7f476a79b3e fix: add embedded box sizing rule for layout (#38351)
7f476a79b3e is described below

commit 7f476a79b3e7bea47830cf29368bc017c89f1436
Author: Mehmet Salih Yavuz <[email protected]>
AuthorDate: Thu Mar 12 21:20:14 2026 +0300

    fix: add embedded box sizing rule for layout (#38351)
    
    Co-authored-by: Joe Li <[email protected]>
---
 superset-frontend/src/embedded/index.tsx | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/superset-frontend/src/embedded/index.tsx 
b/superset-frontend/src/embedded/index.tsx
index 5609877f77c..6eeb1009c98 100644
--- a/superset-frontend/src/embedded/index.tsx
+++ b/superset-frontend/src/embedded/index.tsx
@@ -21,12 +21,14 @@ import 'src/public-path';
 import { lazy, Suspense } from 'react';
 import ReactDOM from 'react-dom';
 import { BrowserRouter as Router, Route } from 'react-router-dom';
+import { Global } from '@emotion/react';
 import { t } from '@apache-superset/core/translation';
 import { makeApi } from '@superset-ui/core';
 import { logging } from '@apache-superset/core/utils';
 import {
   type SupersetThemeConfig,
   ThemeMode,
+  css,
 } from '@apache-superset/core/theme';
 import Switchboard from '@superset-ui/switchboard';
 import getBootstrapData, { applicationRoot } from 'src/utils/getBootstrapData';
@@ -93,6 +95,16 @@ const EmbededLazyDashboardPage = () => {
 
 const EmbeddedRoute = () => (
   <EmbeddedContextProviders>
+    <Global
+      styles={css`
+        /* Apply box-sizing reset for embedded dashboards to fix layout issues 
*/
+        *,
+        *::before,
+        *::after {
+          box-sizing: border-box;
+        }
+      `}
+    />
     <Suspense fallback={<Loading />}>
       <ErrorBoundary>
         <EmbededLazyDashboardPage />

Reply via email to