Skip to content

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

fix(design-system): fix last table cell showing independent hover state (#46251)

Danny White1e354209aad6
diff --git a/apps/studio/components/interfaces/Database/Tables/TableList.tsx b/apps/studio/components/interfaces/Database/Tables/TableList.tsx
index df44a16e8ed..360fd1676bb 100644
--- a/apps/studio/components/interfaces/Database/Tables/TableList.tsx
+++ b/apps/studio/components/interfaces/Database/Tables/TableList.tsx
@@ -493,7 +493,7 @@ export const TableList = ({
{!isSchemaLocked && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button type="text" className="px-1" icon={<MoreVertical />} />
+ <Button type="default" className="px-1" icon={<MoreVertical />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-40">
<DropdownMenuItem
diff --git a/packages/ui/src/components/ShadowScrollArea/index.tsx b/packages/ui/src/components/ShadowScrollArea/index.tsx
index 7736d65f002..46f5e73d611 100644
--- a/packages/ui/src/components/ShadowScrollArea/index.tsx
+++ b/packages/ui/src/components/ShadowScrollArea/index.tsx
@@ -60,8 +60,8 @@ const ShadowScrollArea = React.forwardRef<HTMLDivElement, ShadowScrollAreaProps>
'[&_tr:hover>*:last-child]:bg-transparent',
'[&_th>*:last-child]:bg-surface-100',
stickyColumnShadow,
+ hasHorizontalScroll && '[&_tr:hover>td:last-child]:!bg-surface-200',
],
- hasHorizontalScroll && '[&_tr:hover>td:last-child]:!bg-surface-200',
canScrollRight &&
'[&_td]:before:opacity-100 [&_tr>*:last-child]:before:opacity-100 [&_th:last-child]:before:opacity-100',
className