Skip to content

Commit

Permalink
chore(style): make brand icon max width customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Feb 15, 2023
1 parent 65fffe9 commit 14a061e
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 14a061e

Please sign in to comment.