Skip to content

Commit 47cf25d

Browse files
stop the navbar logo and install bar overflowing on narrow screens
1 parent a474947 commit 47cf25d

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

src/components/InstallCommand/styles.module.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
.tabs {
66
display: flex;
7+
flex-wrap: wrap;
78
gap: 0.25rem;
89
}
910

@@ -34,7 +35,8 @@
3435
display: flex;
3536
align-items: center;
3637
justify-content: space-between;
37-
gap: 1rem;
38+
flex-wrap: wrap;
39+
gap: 0.5rem 1rem;
3840
margin-bottom: 0.5rem;
3941
}
4042

src/css/custom.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,22 @@
7575
margin-right: 2rem;
7676
}
7777

78+
/* The lockup is 4.5:1, so a fixed 4rem height makes it 288px wide -- wider than
79+
the room left beside the hamburger and search on a small phone, which pushed
80+
the whole document sideways. Below the navbar's own breakpoint let the width
81+
lead and the height follow, so it shrinks to fit instead of overflowing. */
82+
@media (max-width: 996px) {
83+
.navbar__brand {
84+
margin-right: 0.5rem;
85+
}
86+
87+
.navbar__logo {
88+
height: auto;
89+
max-height: 4rem;
90+
max-width: 55vw;
91+
}
92+
}
93+
7894

7995
.navbar__link {
8096
font-weight: 500;

0 commit comments

Comments
 (0)