Skip to content

Commit 286d0bd

Browse files
committed
fix mobile issues
1 parent 5278364 commit 286d0bd

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/components/banner/banner.module.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.promo-banner {
2+
font-size: 15px;
23
background: var(--accent-yellow);
3-
padding: 0.5rem;
4+
padding: 0.5rem 1rem;
45
display: flex;
56
justify-content: center;
67
position: relative;
@@ -38,10 +39,10 @@
3839

3940
.promo-banner-dismiss {
4041
background: var(--flame6);
41-
height: 3rem;
42-
width: 3rem;
42+
height: 1.5rem;
43+
width: 1.5rem;
44+
font-size: 1rem;
4345
line-height: 100%;
44-
font-size: 2.5rem;
4546
border-radius: 3rem;
4647
text-align: center;
4748
position: absolute;
@@ -54,9 +55,8 @@
5455
text-decoration: none;
5556
}
5657

57-
@media (min-width: 576px) {
58-
height: 1.5rem;
59-
width: 1.5rem;
60-
font-size: 1rem;
58+
@media (max-width: 576px) {
59+
top: 1.5rem;
60+
right: 1rem;
6161
}
6262
}

src/components/banner/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function Banner() {
151151
return banner ? (
152152
<div className={[styles['promo-banner']].filter(Boolean).join(' ')}>
153153
<div className={styles['promo-banner-message']}>
154-
<span className="flex gap-4">
154+
<span className="flex flex-col md:flex-row gap-4">
155155
{banner.text}
156156
<a href={banner.linkURL} className="min-w-max">
157157
{banner.linkText}

0 commit comments

Comments
 (0)