Skip to content

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

feat(docs): updates codetabs ui (#50734)

Anthony Lioef0f7f2b3d8c
diff --git a/apps/docs/features/directives/CodeTabs.components.tsx b/apps/docs/features/directives/CodeTabs.components.tsx
index 126974e1734..3dd9e429743 100644
--- a/apps/docs/features/directives/CodeTabs.components.tsx
+++ b/apps/docs/features/directives/CodeTabs.components.tsx
@@ -3,13 +3,18 @@ import { cn } from 'ui'
export function NamedCodeBlock({ name, children }: PropsWithChildren<{ name: string }>) {
return (
- <div className="shiki-wrapper w-full space-y-2">
+ <div
+ className={cn(
+ 'shiki-wrapper w-full isolate',
+ '[&_.shiki]:rounded-tl-none [&_.shiki]:my-0!',
+ '[&_.shiki_.code-scroll]:rounded-tl-none'
+ )}
+ >
<span
className={cn(
- 'w-fit flex items-center text-center',
- 'shadow-xs rounded-sm border border-stronger bg-selection',
- 'px-2.5 py-1',
- 'text-xs font-heading font-semibold text-foreground'
+ 'relative z-1 -mb-px flex w-fit items-center px-3 py-2',
+ 'rounded-t-lg border border-b-0 border-default bg-200',
+ 'text-xs text-foreground'
)}
>
{name}