Skip to content

Commit

Permalink
fix: Delete modal fixes for longer permissions (#2084)
Browse files Browse the repository at this point in the history
* Delete modal fixes for longer permissions

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
harshsbhat and autofix-ci[bot] authored Sep 12, 2024
1 parent 9345e10 commit 4b04836
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const DeletePermission: React.FC<Props> = ({ trigger, permission }) => {
return (
<Dialog open={open} onOpenChange={(o) => setOpen(o)}>
<DialogTrigger>{trigger}</DialogTrigger>
<DialogContent className="border-alert">
<DialogContent className="border-alert p-4 max-w-md mx-auto">
<DialogHeader>
<DialogTitle>Delete Permission</DialogTitle>
<DialogDescription>
Expand All @@ -96,10 +96,11 @@ export const DeletePermission: React.FC<Props> = ({ trigger, permission }) => {
<FormLabel className="font-normal text-content-subtle">
{" "}
Enter the permission's name{" "}
<span className="font-medium text-content">{permission.name}</span> to continue:
<span className="font-medium text-content break-all">{permission.name}</span> to
continue:
</FormLabel>
<FormControl>
<Input {...field} autoComplete="off" />
<Input {...field} autoComplete="off" className="w-full" />
</FormControl>

<FormMessage />
Expand Down

0 comments on commit 4b04836

Please sign in to comment.