Skip to content

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

bug: Update EntityListItem.tsx (#21570)

Jonathan Summers-Muird8a2052a9455
diff --git a/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx b/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx
index 51ae83afd01..beca9292de8 100644
--- a/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx
+++ b/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx
@@ -47,7 +47,7 @@ const OrganizationDropdown = ({ isNewNav = false }: OrganizationDropdownProps) =
}
return (
- <div className="flex items-center px-2">
+ <div className="flex items-center px-2 py-1">
<Popover_Shadcn_ open={open} onOpenChange={setOpen} modal={false}>
<PopoverTrigger_Shadcn_ asChild>
<div className="flex items-center space-x-2 cursor-pointer">
diff --git a/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx b/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
index a84f73ef3e8..f72e396098a 100644
--- a/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
+++ b/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
@@ -135,7 +135,7 @@ const EntityListItem: ItemRenderer<Entity, EntityListItemProps> = ({
)}
>
<Tooltip.Root delayDuration={0} disableHoverableContent={true}>
- <Tooltip.Trigger className="flex items-center" asChild>
+ <Tooltip.Trigger className="min-w-4" asChild>
{entity.type === ENTITY_TYPE.TABLE ? (
<Table2 size={15} strokeWidth={1.5} className="text-foreground-lighter" />
) : entity.type === ENTITY_TYPE.VIEW ? (
@@ -173,7 +173,7 @@ const EntityListItem: ItemRenderer<Entity, EntityListItemProps> = ({
<div
className={cn(
'truncate',
- 'max-w-[175px] overflow-hidden text-ellipsis whitespace-nowrap flex items-center gap-2 relative w-full',
+ 'overflow-hidden text-ellipsis whitespace-nowrap flex items-center gap-2 relative w-full',
isActive && 'text-foreground'
)}
>
@@ -191,7 +191,7 @@ const EntityListItem: ItemRenderer<Entity, EntityListItemProps> = ({
<Unlock
size={14}
strokeWidth={2}
- className={cn(isActive ? 'text-warning-600' : 'text-warning-500')}
+ className={cn('min-w-4', isActive ? 'text-warning-600' : 'text-warning-500')}
/>
)}
</div>