Skip to content

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

Small fixes to service status component (#18161)

Joshen Lim82c5662e2f40
diff --git a/studio/components/interfaces/Home/ServiceStatus.tsx b/studio/components/interfaces/Home/ServiceStatus.tsx
index dfa0a20f8d5..f8bfb6639cc 100644
--- a/studio/components/interfaces/Home/ServiceStatus.tsx
+++ b/studio/components/interfaces/Home/ServiceStatus.tsx
@@ -77,12 +77,7 @@ const ServiceStatus = () => {
{isBranch ? 'Preview Branch' : 'Project'} Status
</Button>
</PopoverTrigger_Shadcn_>
- <PopoverContent_Shadcn_
- className="p-0 w-56"
- side="bottom"
- align="end"
- style={{ marginLeft: '-247px' }}
- >
+ <PopoverContent_Shadcn_ className="p-0 w-56" side="bottom" align="end">
{services.map((service) => (
<div
key={service.name}
diff --git a/studio/pages/project/[ref]/index.tsx b/studio/pages/project/[ref]/index.tsx
index 97b4be6529d..fec5390e75e 100644
--- a/studio/pages/project/[ref]/index.tsx
+++ b/studio/pages/project/[ref]/index.tsx
@@ -21,7 +21,7 @@ const Home: NextPageWithLayout = () => {
<div className="w-full mx-auto my-16 space-y-16 max-w-7xl">
<div className="flex items-center justify-between mx-6 space-x-6">
<h1 className="text-3xl">{projectName}</h1>
- {IS_PLATFORM && <ServiceStatus />}
+ {IS_PLATFORM && project?.status === PROJECT_STATUS.ACTIVE_HEALTHY && <ServiceStatus />}
</div>
<div className="mx-6">