Skip to content

Commit be5cf32

Browse files
authored
fix: Fix for small screens (#3648)
1 parent b1b77d8 commit be5cf32

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

src/header/Header.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,31 @@ ui5-shellbar.header {
1212
padding-inline-end: 1.25rem;
1313
box-shadow: var(--sapContainer_Shadow1);
1414
}
15+
16+
.header-logo {
17+
img[alt='SAP'] {
18+
height: 32px;
19+
}
20+
}
21+
}
22+
23+
@media (max-width: 340px) {
24+
ui5-shellbar.header {
25+
ui5-button[accessible-name='collapse-sidebar'] {
26+
margin-inline: 0rem;
27+
}
28+
29+
&::part(root) {
30+
padding-inline-start: 0.5rem;
31+
padding-inline-end: 0.75rem;
32+
}
33+
34+
.header-logo {
35+
img[alt='SAP'] {
36+
height: 30px;
37+
}
38+
}
39+
}
1540
}
1641

1742
.snowflake {

src/header/Logo/Logo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export function Logo(props: any) {
55
const { t } = useTranslation();
66

77
return (
8-
<FlexBox alignItems="Center" slot={props.slot}>
9-
<img alt="SAP" src="\assets\sap-logo.svg" style={{ height: '32px' }} />
8+
<FlexBox className="header-logo" alignItems="Center" slot={props.slot}>
9+
<img alt="SAP" src="\assets\sap-logo.svg" />
1010
<Title level="H5">{t('common.product-title')}</Title>
1111
</FlexBox>
1212
);

0 commit comments

Comments
 (0)