Skip to content

Commit 1be33d1

Browse files
committed
frontend: limit bottom-menu size expansion in reponsive mode
Bottom-menu should not grow beyond certain size in responsive mode for example if Android Font size is set to max. This can be simulated by changing the font-size on the root HTML element to 150%.
1 parent 062e153 commit 1be33d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontends/web/src/components/bottom-navigation/bottom-navigation.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
align-items: center;
1818
color: var(--color-text);
1919
display: flex;
20-
font-size: 1.2rem;
20+
font-size: min(1.2rem, 20px);
2121
flex-direction: column;
2222
gap: 4px;
2323
justify-content: center;

frontends/web/src/style/variables.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
--guide-width: 350px;
106106

107107
/* bottom navigation */
108-
--bottom-navigation-height: calc(70px + env(safe-area-inset-bottom, 0));
108+
--bottom-navigation-height: calc(min(7rem, 90px) + env(safe-area-inset-bottom, 0));
109109
}
110110

111111
:root,

0 commit comments

Comments
 (0)