From eef4dddaa32f762cbcc4782850fdee1e8ba57608 Mon Sep 17 00:00:00 2001 From: Innei Date: Sat, 8 Jul 2023 23:45:02 +0800 Subject: [PATCH] fix: mask Signed-off-by: Innei --- src/app/(home)/page.tsx | 2 +- src/components/ui/markdown/renderers/link.tsx | 2 +- src/components/ui/rich-link/Favicon.tsx | 2 +- src/styles/tailwindcss.css | 4 ++++ src/styles/theme.css | 6 ++++++ 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/app/(home)/page.tsx b/src/app/(home)/page.tsx index 4461562517..2c8a96368e 100644 --- a/src/app/(home)/page.tsx +++ b/src/app/(home)/page.tsx @@ -367,7 +367,7 @@ const NoteScreen = () => { {!!theLast.images?.[0]?.src && (
( - + {!showRichLink && } {showRichLink ? ( diff --git a/src/components/ui/rich-link/Favicon.tsx b/src/components/ui/rich-link/Favicon.tsx index c3ad68d84a..b71bdd004e 100644 --- a/src/components/ui/rich-link/Favicon.tsx +++ b/src/components/ui/rich-link/Favicon.tsx @@ -48,7 +48,7 @@ export const Favicon: Component = (props) => { if (!prefixToIconMap[nextSource]) return null return ( - + {prefixToIconMap[nextSource]} ) diff --git a/src/styles/tailwindcss.css b/src/styles/tailwindcss.css index 5116b3e4a7..5101a95b10 100644 --- a/src/styles/tailwindcss.css +++ b/src/styles/tailwindcss.css @@ -62,6 +62,10 @@ textarea { font-size: 16px; } +a { + @apply break-all; +} + @screen lg { input, textarea { diff --git a/src/styles/theme.css b/src/styles/theme.css index 1354406f13..0e52787c9c 100644 --- a/src/styles/theme.css +++ b/src/styles/theme.css @@ -96,6 +96,12 @@ animation: blink 2s ease infinite both; } + .mask-top { + mask-image: linear-gradient(to top, transparent, rgb(0 0 0 / 100%) 90%); + opacity: 0.3; + transition: opacity 0.3s ease-in-out; + } + @keyframes blink { 0% { opacity: 0;