Skip to content

Commit 1d52082

Browse files
committed
fix: optimize mobile layout to keep banner on single line
- Keep flex-direction as row on mobile - Reduce font size for mobile devices - Add white-space nowrap to prevent text wrapping - Adjust padding for better mobile appearance
1 parent b0696cc commit 1d52082

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/components/TeamsBanner/styles.module.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,24 @@
5959

6060
@media (max-width: 768px) {
6161
.teamsBanner {
62-
padding: 1rem;
62+
padding: 0.75rem 1rem;
6363
}
6464

6565
.teamsBannerContent {
66-
flex-direction: column;
67-
align-items: flex-start;
66+
flex-direction: row;
67+
align-items: center;
6868
gap: 0.5rem;
6969
padding-right: 2rem; /* Space for close button */
70+
font-size: 0.875rem; /* Smaller font size for mobile */
71+
}
72+
73+
.teamsBannerHeadline {
74+
font-weight: 600;
75+
white-space: nowrap;
76+
}
77+
78+
.teamsBannerLink {
79+
white-space: nowrap;
7080
}
7181

7282
.teamsBannerDismiss {

0 commit comments

Comments
 (0)