Skip to content

Commit f413983

Browse files
committed
Change min-width to flex-basis
Keeps the same design but fixes a bug where screens below 300px overflow
1 parent 82e383d commit f413983

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/BlogPost.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const { url, title, description } = Astro.props;
2626
padding: 1em;
2727
gap: 1em;
2828
flex: 1;
29-
min-width: 300px;
29+
flex-basis: 300px;
3030
}
3131

3232
.blog-post-card .info span {

src/components/Member.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { github, name } = Astro.props;
2929
padding: 1em;
3030
gap: 1em;
3131
flex: 1;
32-
min-width: 300px;
32+
flex-basis: 300px;
3333
}
3434

3535
.member-card .avatar {

0 commit comments

Comments
 (0)