Skip to content

Commit 612ec90

Browse files
authored
Give extra line in confirm modals its own paragraph (#2485)
give extra line in confirm modals its own paragraph
1 parent 614f1bb commit 612ec90

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

app/pages/project/instances/actions.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,15 @@ export const useMakeInstanceActions = (
8383
}),
8484
modalTitle: 'Confirm stop instance',
8585
modalContent: (
86-
<p>
87-
Are you sure you want to stop <HL>{instance.name}</HL>? Stopped instances
88-
retain attached disks and IP addresses, but allocated CPU and memory are
89-
freed.
90-
</p>
86+
<div className="space-y-2">
87+
<p>
88+
Are you sure you want to stop <HL>{instance.name}</HL>?
89+
</p>
90+
<p>
91+
Stopped instances retain attached disks and IP addresses, but allocated
92+
CPU and memory are freed.
93+
</p>
94+
</div>
9195
),
9296
errorTitle: `Error stopping ${instance.name}`,
9397
})

app/stores/confirm-delete.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ export const confirmDelete =
3636
actionConfig: {
3737
doAction: doDelete,
3838
modalContent: (
39-
<p>
40-
Are you sure you want to delete {displayLabel}? {extraContent}
41-
</p>
39+
<div className="space-y-2">
40+
<p>Are you sure you want to delete {displayLabel}?</p>
41+
{extraContent ? <p>{extraContent}</p> : null}
42+
</div>
4243
),
4344
errorTitle: 'Could not delete resource',
4445
modalTitle,

0 commit comments

Comments
 (0)