Skip to content

Commit 3e5f34b

Browse files
samejrmatt-aitken
authored andcommitted
Nice left padding
1 parent a35a991 commit 3e5f34b

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.metrics.custom.$dashboardId

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.metrics.custom.$dashboardId/route.tsx

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -443,20 +443,14 @@ function RenameDashboardDialog({ title }: { title: string }) {
443443

444444
return (
445445
<Dialog open={isOpen} onOpenChange={setIsOpen}>
446-
<span className="flex items-center gap-1">
447-
{title}
448-
<DialogTrigger asChild>
449-
<button
450-
type="button"
451-
className="rounded p-0.5 text-text-dimmed transition focus-custom hover:bg-charcoal-700 hover:text-text-bright"
452-
>
453-
<IconEdit className="size-4" />
454-
</button>
455-
</DialogTrigger>
456-
</span>
457-
<DialogContent className="sm:max-w-md">
446+
<DialogTrigger asChild>
447+
<Button variant="small-menu-item" LeadingIcon={IconEdit} fullWidth textAlignLeft>
448+
Rename dashboard
449+
</Button>
450+
</DialogTrigger>
451+
<DialogContent className="sm:max-w-sm">
458452
<DialogHeader>Rename dashboard</DialogHeader>
459-
<Form method="post" className="space-y-4 pt-3">
453+
<Form method="post" className="space-y-4">
460454
<input type="hidden" name="action" value="rename" />
461455
<InputGroup>
462456
<Label>Title</Label>

0 commit comments

Comments
 (0)