From 1324135697b381b58fd2dbc745b13f6122083977 Mon Sep 17 00:00:00 2001 From: Ville Brofeldt <33317356+villebro@users.noreply.github.com> Date: Wed, 15 Feb 2023 18:38:09 +0200 Subject: [PATCH] chore(style): make brand icon max width customizable (#23081) --- superset-frontend/packages/superset-ui-core/src/style/index.tsx | 1 + superset-frontend/src/views/components/Menu.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;