Skip to content

Commit 7a11ac0

Browse files
committed
fix(web): improve maintenance banner layout on mobile
Stack the badge and GitHub link on one row with the message below so the banner no longer wraps awkwardly on small screens.
1 parent e3c47e8 commit 7a11ac0

1 file changed

Lines changed: 44 additions & 4 deletions

File tree

apps/web/src/app/page.module.css

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
display: flex;
6969
align-items: center;
7070
gap: 1.25rem;
71-
flex-wrap: wrap;
7271
}
7372

7473
.statusIndicator {
@@ -102,6 +101,8 @@
102101
color: var(--text-secondary);
103102
flex: 1;
104103
min-width: 0;
104+
line-height: 1.45;
105+
margin: 0;
105106
}
106107

107108
.statusLink {
@@ -126,9 +127,48 @@
126127
background: rgba(255, 255, 255, 0.04);
127128
}
128129

129-
@media (max-width: 600px) {
130-
.statusBanner { padding: 0.6rem 1.25rem; }
131-
.statusText { font-size: 0.75rem; }
130+
/* Mobile: stack badge + link on one row, message below */
131+
@media (max-width: 720px) {
132+
.statusBanner {
133+
padding: 0.75rem 1rem;
134+
}
135+
136+
.statusBannerInner {
137+
flex-wrap: wrap;
138+
align-items: flex-start;
139+
gap: 0.5rem 0.75rem;
140+
}
141+
142+
.statusIndicator {
143+
order: 1;
144+
}
145+
146+
.statusLink {
147+
order: 2;
148+
margin-left: auto;
149+
padding: 0.3rem 0.6rem;
150+
font-size: 0.72rem;
151+
}
152+
153+
.statusText {
154+
order: 3;
155+
flex: 1 1 100%;
156+
width: 100%;
157+
font-size: 0.78rem;
158+
line-height: 1.5;
159+
}
160+
}
161+
162+
@media (max-width: 400px) {
163+
.statusBanner {
164+
padding: 0.7rem 0.875rem;
165+
}
166+
167+
.statusLink {
168+
margin-left: 0;
169+
width: 100%;
170+
justify-content: center;
171+
}
132172
}
133173

134174
/* ===== NAVBAR ===== */

0 commit comments

Comments
 (0)