Skip to content

Commit 1537c2e

Browse files
committed
chore: fix anti aliasing issues in card
1 parent 3afa3da commit 1537c2e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/good-wasps-fail.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+
Fix antialiasing issues in card

src/components/Card.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ const HeadingTag = `h${headingLevel}` as keyof HTMLElementTagNameMap;
4949
color: var(--color-text);
5050
padding: var(--gap);
5151
padding-top: var(--gap-big);
52-
clip-path: polygon(0 0, 100% 1rem, 100% 100%, 0 100%);
52+
clip-path: polygon(0 0, calc(100% + 1px) 1rem, calc(100% + 1px) calc(100% + 1px), 0 calc(100% + 1px));
5353
font-size: 0.8rem;
5454
}
5555

5656
.overlay.divider-flip {
57-
clip-path: polygon(0 1rem, 100% 0, 100% 100%, 0 100%);
57+
clip-path: polygon(0 1rem, calc(100% + 1px) 0, calc(100% + 1px) calc(100% + 1px), 0 calc(100% + 1px));
5858
}
5959

6060
a:hover .overlay,

0 commit comments

Comments
 (0)