Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 43b5afd

Browse filesBrowse files
committed
fix overflow hidden on safari
1 parent 697ba6e commit 43b5afd
Copy full SHA for 43b5afd

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

‎components/layout/index.tsx

Copy file name to clipboardExpand all lines: components/layout/index.tsx
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ export default function Layout({
3535
target="_blank"
3636
rel="noopener noreferrer"
3737
className="relative overflow-hidden rounded-full w-32 px-10 py-4 focus:outline-none focus:ring-0"
38+
// This is a workaround hack to make overflow-hidden work on Safari: https://github.com/tailwindlabs/tailwindcss/discussions/5675
39+
style={{
40+
WebkitMaskImage: "-webkit-radial-gradient(white, black);",
41+
}}
3842
>
3943
<span className="absolute inset-px z-10 grid place-items-center rounded-full bg-black bg-gradient-to-t from-neutral-800 text-neutral-400 text-sm">
4044
View the code

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.