Skip to content

Commit

Permalink
Set preserveSmoothing
Browse files Browse the repository at this point in the history
  • Loading branch information
sashachabin committed Nov 22, 2023
1 parent 11c0183 commit 373137c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/components/MainPage/Card/useSmoothCorners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ function setCorners(entry: ResizeObserverEntry) {
width: left + width + right,
height: top + height + bottom,
cornerRadius: parseInt(styles.borderRadius, 10),
cornerSmoothing: Number(styles.getPropertyValue('--smooth-corners'))
cornerSmoothing: Number(styles.getPropertyValue('--smooth-corners')),
preserveSmoothing: true
});

element.style.clipPath = `path('${clipPath}')`;
Expand Down

1 comment on commit 373137c

@ekbdev
Copy link

@ekbdev ekbdev commented on 373137c Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for transport ready!

✅ Preview
https://transport-555r2y3fp-ekbdev.vercel.app
https://ekbdev-transport-feature-card-smooth-corners.vercel.app

Built with commit 373137c.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.