chore(style): make brand icon max width customizable (#23081)

This commit is contained in:
Ville Brofeldt 2023-02-15 18:38:09 +02:00 committed by GitHub
parent a7dac13ded
commit 1324135697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -161,6 +161,7 @@ const defaultTheme = {
}, },
transitionTiming: 0.3, transitionTiming: 0.3,
gridUnit: 4, gridUnit: 4,
brandIconMaxWidth: 37,
}; };
export type SupersetTheme = typeof defaultTheme; export type SupersetTheme = typeof defaultTheme;

View File

@ -62,7 +62,7 @@ const StyledHeader = styled.header`
padding: ${theme.gridUnit}px ${theme.gridUnit * 2}px ${ padding: ${theme.gridUnit}px ${theme.gridUnit * 2}px ${
theme.gridUnit theme.gridUnit
}px ${theme.gridUnit * 4}px; }px ${theme.gridUnit * 4}px;
max-width: ${theme.gridUnit * 37}px; max-width: ${theme.gridUnit * theme.brandIconMaxWidth}px;
img { img {
height: 100%; height: 100%;
object-fit: contain; object-fit: contain;