Skip to content

Commit

Permalink
chore(style): make brand icon max width customizable (#23081)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored Feb 15, 2023
1 parent a7dac13 commit 1324135
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ const defaultTheme = {
},
transitionTiming: 0.3,
gridUnit: 4,
brandIconMaxWidth: 37,
};

export type SupersetTheme = typeof defaultTheme;
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/views/components/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1324135

Please sign in to comment.