We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29100c4 commit 7ee8679Copy full SHA for 7ee8679
.changeset/little-friends-wink.md
@@ -0,0 +1,5 @@
1
+---
2
+"r.obin.ch": patch
3
4
+
5
+Make card more responsive
src/components/Card.astro
@@ -23,7 +23,7 @@ const HeadingTag = `h${headingLevel}`;
23
border-radius: var(--border-radius);
24
overflow: hidden;
25
text-decoration: none;
26
- margin: calc(var(--gap) * -1);
+ margin: 0 calc(var(--gap) * -1);
27
height: calc(100% + var(--gap) * 2);
28
hyphens: auto;
29
}
@@ -94,6 +94,13 @@ const HeadingTag = `h${headingLevel}`;
94
flex-grow: 1;
95
object-fit: cover;
96
97
98
+ @media (max-width: 800px) {
99
+ a {
100
+ width: 100%;
101
+ margin: 0;
102
+ }
103
104
</style>
105
106
<a href={link}>
0 commit comments