Skip to content

Commit 112cc89

Browse files
fix(studio): column sizes for access tokens (supabase#38096)
* fix: column sizes for access tokens This fixes the column widths for the access tokens table so they dont collapse despite small strings for dates. * fix: truncation for token name
1 parent 0fadb11 commit 112cc89

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

apps/studio/components/interfaces/Account/AccessTokens/AccessTokenList.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const RowLoading = () => (
5050
)
5151

5252
const tableHeaderClass = 'text-left font-mono uppercase text-xs text-foreground-lighter h-auto py-2'
53+
5354
const TableContainer = ({ children }: { children: React.ReactNode }) => (
5455
<Card className="w-full overflow-hidden">
5556
<CardContent className="p-0">
@@ -151,13 +152,15 @@ export const AccessTokenList = ({ searchString = '', onDeleteSuccess }: AccessTo
151152
{filteredTokens?.map((x) => {
152153
return (
153154
<TableRow key={x.token_alias}>
154-
<TableCell className="w-48">
155-
<p className="truncate">{x.name}</p>
155+
<TableCell className="w-36 max-w-36">
156+
<p className="truncate" title={x.name}>
157+
{x.name}
158+
</p>
156159
</TableCell>
157-
<TableCell>
158-
<span className="font-mono text-foreground-light">{x.token_alias}</span>
160+
<TableCell className="max-w-96">
161+
<p className="font-mono text-foreground-light truncate">{x.token_alias}</p>
159162
</TableCell>
160-
<TableCell>
163+
<TableCell className="min-w-32">
161164
<p className="text-foreground-light">
162165
{x.last_used_at ? (
163166
<Tooltip>
@@ -171,7 +174,7 @@ export const AccessTokenList = ({ searchString = '', onDeleteSuccess }: AccessTo
171174
)}
172175
</p>
173176
</TableCell>
174-
<TableCell>
177+
<TableCell className="min-w-32">
175178
{x.expires_at ? (
176179
dayjs(x.expires_at).isBefore(dayjs()) ? (
177180
<Tooltip>

0 commit comments

Comments
 (0)