This is an automated email from the ASF dual-hosted git repository.
villebro 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 1324135697 chore(style): make brand icon max width customizable
(#23081)
1324135697 is described below
commit 1324135697b381b58fd2dbc745b13f6122083977
Author: Ville Brofeldt <[email protected]>
AuthorDate: Wed Feb 15 18:38:09 2023 +0200
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 1a4d9031f8..ee0b6e10ac 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 9b50710999..652ae63fd9 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;