Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(www): inner border radii for homepage cards (#50987)

kemal.earthae7b9ee2452d
diff --git a/apps/www/components/Panel/Panel.tsx b/apps/www/components/Panel/Panel.tsx
index 96274a15c6c..ad3bddf340b 100644
--- a/apps/www/components/Panel/Panel.tsx
+++ b/apps/www/components/Panel/Panel.tsx
@@ -82,7 +82,7 @@ const Panel = ({
<Component
ref={outerRef}
className={cn(
- 'group/panel relative rounded-lg md:rounded-xl p-px bg-surface-75 bg-linear-to-b from-border to-border/50 dark:to-surface-100 transition-all hover:shadow-md',
+ 'group/panel relative [--panel-radius:var(--radius-lg)] md:[--panel-radius:var(--radius-xl)] rounded-(--panel-radius) p-px bg-surface-75 bg-linear-to-b from-border to-border/50 dark:to-surface-100 transition-all hover:shadow-md',
!trackCursor && hasActiveOnHover
? activeColor === 'brand'
? 'hover:bg-none hover:bg-brand-default!'
@@ -95,7 +95,7 @@ const Panel = ({
>
<div
className={cn(
- 'relative z-10 w-full h-full rounded-[7px] md:rounded-[11px] bg-surface-75 overflow-hidden text-foreground-light',
+ 'relative z-10 w-full h-full rounded-[calc(var(--panel-radius)-1px)] bg-surface-75 overflow-hidden text-foreground-light',
innerClassName
)}
style={innerStyle}