Skip to content

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

feat(studio): improve feature preview sidebar legibility (#49616)

kemal.earthb66258c0b8fa
diff --git a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx
index ff43cc11831..606e6198125 100644
--- a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx
+++ b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx
@@ -150,12 +150,8 @@ export const FeaturePreviewModal = () => {
? allFeaturePreviews.filter((x) => x.category === undefined)
: allFeaturePreviews.filter((x) => x.category === category)
return (
- <AccordionItem
- key={category}
- value={category}
- className="data-[state=open]:border-b-0"
- >
- <AccordionTrigger className="text-xs font-mono uppercase tracking-tight px-4 text-foreground-lighter py-2">
+ <AccordionItem key={category} value={category}>
+ <AccordionTrigger className="text-xs font-mono uppercase tracking-tight px-4 text-foreground-lighter py-2 bg-tertiary dark:bg-transparent">
{category}
</AccordionTrigger>
<AccordionContent className="[&>div]:pb-0">
@@ -320,8 +316,10 @@ const FeaturePreviewItem = ({
key={feature.key}
onClick={() => selectFeaturePreview(feature.key)}
className={cn(
- 'w-full! flex-1 flex items-center justify-between p-4 border-b cursor-pointer bg transition',
- selectedFeature?.key === feature.key ? 'bg-accent' : 'bg-card',
+ 'w-full! flex-1 flex items-center justify-between p-4 cursor-pointer bg transition',
+ selectedFeature?.key === feature.key
+ ? 'bg-muted dark:bg-accent text-foreground'
+ : 'bg-card text-foreground-light',
className
)}
>