From 9136ef87c5843ef530f480e8130b8f458cb97916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Tue, 2 Apr 2024 00:14:36 +0200 Subject: [PATCH] Remove mask on page cover --- src/components/PageBody/PageCover.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/PageBody/PageCover.tsx b/src/components/PageBody/PageCover.tsx index 1087326396..0047cdf4f6 100644 --- a/src/components/PageBody/PageCover.tsx +++ b/src/components/PageBody/PageCover.tsx @@ -69,14 +69,7 @@ export async function PageCover(props: { // Maximum size of the cover { width: 1248 }, ]} - className={tcls( - 'w-full', - 'object-cover', - 'object-center', - as === 'full' - ? ['[mask-image:linear-gradient(rgba(0,0,0,1),_rgba(0,0,0,0.5))]'] - : null, - )} + className={tcls('w-full', 'object-cover', 'object-center')} inlineStyle={{ aspectRatio: `${PAGE_COVER_SIZE.width}/${PAGE_COVER_SIZE.height}` }} />