diff --git a/superset-frontend/packages/superset-ui-core/src/style/index.tsx b/superset-frontend/packages/superset-ui-core/src/style/index.tsx index 1a4d9031f8f91..ee0b6e10ac419 100644 --- a/superset-frontend/packages/superset-ui-core/src/style/index.tsx +++ b/superset-frontend/packages/superset-ui-core/src/style/index.tsx @@ -161,6 +161,7 @@ const defaultTheme = { }, transitionTiming: 0.3, gridUnit: 4, + brandIconMaxWidth: 37, }; export type SupersetTheme = typeof defaultTheme; diff --git a/superset-frontend/src/views/components/Menu.tsx b/superset-frontend/src/views/components/Menu.tsx index 9b50710999916..652ae63fd91ce 100644 --- a/superset-frontend/src/views/components/Menu.tsx +++ b/superset-frontend/src/views/components/Menu.tsx @@ -62,7 +62,7 @@ const StyledHeader = styled.header` padding: ${theme.gridUnit}px ${theme.gridUnit * 2}px ${ theme.gridUnit }px ${theme.gridUnit * 4}px; - max-width: ${theme.gridUnit * 37}px; + max-width: ${theme.gridUnit * theme.brandIconMaxWidth}px; img { height: 100%; object-fit: contain;