Skip to content

Commit 049eba3

Browse files
committed
Wrapped long text in ConfirmActionButton
1 parent 25e15c0 commit 049eba3

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/lib/components/common/ConfirmActionButton.svelte

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</svelte:fragment>
3636
<svelte:fragment slot="body">
3737
<p>You're about to:</p>
38-
<p class="badge bg-{style} fs-6">{message}</p>
38+
<p class="badge bg-{style} fs-6 wrap">{message}</p>
3939
<p>Do you confirm?</p>
4040
<div class="container">
4141
<div id="errorAlert-{modalId}" />
@@ -47,9 +47,20 @@
4747
</svelte:fragment>
4848
</Modal>
4949

50-
<button class="btn btn-{btnStyle}" data-bs-toggle="modal" data-bs-target="#{modalId}" aria-label={ariaLabel}>
50+
<button
51+
class="btn btn-{btnStyle}"
52+
data-bs-toggle="modal"
53+
data-bs-target="#{modalId}"
54+
aria-label={ariaLabel}
55+
>
5156
{#if buttonIcon}
5257
<i class="bi bi-{buttonIcon}" />
5358
{/if}
5459
{label}
5560
</button>
61+
62+
<style>
63+
.wrap {
64+
white-space: normal;
65+
}
66+
</style>

0 commit comments

Comments
 (0)