Skip to content

Commit 8d028b8

Browse files
authored
Fix BucketRow long name hides more button (supabase#39014)
1 parent a93903e commit 8d028b8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

apps/studio/components/interfaces/Storage/BucketRow.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@ export const BucketRow = ({ bucket, projectRef = '', isSelected = false }: Bucke
4444
{/* Even though we trim whitespaces from bucket names, there may be some existing buckets with trailing whitespaces. */}
4545
<Link
4646
href={`/project/${projectRef}/storage/buckets/${encodeURIComponent(bucket.id)}`}
47-
className={'py-1 px-3 grow'}
47+
className="py-1 pl-3 pr-1 flex-grow min-w-0"
4848
>
4949
<div className="flex items-center justify-between space-x-2 truncate w-full">
5050
<p
51-
className={`text-sm group-hover:text-foreground transition truncate ${
51+
className={cn(
52+
'text-sm group-hover:text-foreground transition truncate',
5253
isSelected ? 'text-foreground' : 'text-foreground-light'
53-
}`}
54+
)}
5455
title={bucket.name}
5556
>
5657
{bucket.name}
@@ -106,7 +107,7 @@ export const BucketRow = ({ bucket, projectRef = '', isSelected = false }: Bucke
106107
</DropdownMenuContent>
107108
</DropdownMenu>
108109
) : (
109-
<div className="w-7 mr-1" />
110+
<div className="min-w-6 mr-1" />
110111
)}
111112

112113
<EditBucketModal visible={modal === `edit`} bucket={bucket} onClose={onClose} />

0 commit comments

Comments
 (0)