Table hover only if row is clickable

This commit is contained in:
Stan Wohlwend 2024-05-17 13:09:29 +02:00
parent db54bede80
commit 59f831def5
5 changed files with 7 additions and 6 deletions

View File

@ -107,7 +107,7 @@ function ShowKeyDialog(props: {
title="API Key"
okButton={{ label: "Close" }}
onClose={props.onClose}
confirmText="I understand that I will not be able to view this key again"
confirmText="I understand that I will not be able to view this key again."
>
<div className="flex flex-col gap-4">
<Typography>
@ -120,4 +120,4 @@ function ShowKeyDialog(props: {
/>
</div>
</ActionDialog>;
}
}

View File

@ -144,7 +144,7 @@ export function TurnOffProviderDialog(props: {
},
}}
cancelButton
confirmText="I understand that this will disable sign-in and sign-up for new and existing users with this provider"
confirmText="I understand that this will disable sign-in and sign-up for new and existing users with this provider."
>
<Typography>
Disabling this provider will prevent users from signing in with it, including existing users who have used it before. They might not be able to log in anymore. Are you sure you want to do this?

View File

@ -122,7 +122,7 @@ const columns: ColumnDef<PermissionDefinitionJson>[] = [
},
{
accessorKey: "containPermissionIds",
header: ({ column }) => <DataTableColumnHeader column={column} title="Contains Permissions" />,
header: ({ column }) => <DataTableColumnHeader column={column} title="Contained Permissions" />,
cell: ({ row }) => <BadgeCell size={120} badges={row.getValue("containPermissionIds")} />,
},
{

View File

@ -57,7 +57,7 @@ const DialogBody = ({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) => (
<div className={cn("overflow-y-auto flex flex-col w-full gap-4", className)} {...props} />
<div className={cn("overflow-y-auto flex flex-col gap-4 w-[calc(100%+3rem)] -mx-6 px-6", className)} {...props} />
);
const DialogHeader = ({

View File

@ -58,7 +58,8 @@ const TableRow = React.forwardRef<
<tr
ref={ref}
className={cn(
"border-b hover:bg-muted/50 data-[state=selected]:bg-muted",
"border-b data-[state=selected]:bg-muted",
props.onClick ? "hover:bg-muted/50 cursor-pointer" : "",
className
)}
{...props}