Skip to content

Commit 7ee8679

Browse files
committed
chore: make card more responsive
1 parent 29100c4 commit 7ee8679

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.changeset/little-friends-wink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"r.obin.ch": patch
3+
---
4+
5+
Make card more responsive

src/components/Card.astro

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const HeadingTag = `h${headingLevel}`;
2323
border-radius: var(--border-radius);
2424
overflow: hidden;
2525
text-decoration: none;
26-
margin: calc(var(--gap) * -1);
26+
margin: 0 calc(var(--gap) * -1);
2727
height: calc(100% + var(--gap) * 2);
2828
hyphens: auto;
2929
}
@@ -94,6 +94,13 @@ const HeadingTag = `h${headingLevel}`;
9494
flex-grow: 1;
9595
object-fit: cover;
9696
}
97+
98+
@media (max-width: 800px) {
99+
a {
100+
width: 100%;
101+
margin: 0;
102+
}
103+
}
97104
</style>
98105

99106
<a href={link}>

0 commit comments

Comments
 (0)