Skip to content

Commit a0ced67

Browse files
committed
fix: added divider and delete button status danger
1 parent 66ef514 commit a0ced67

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

src/lib/components/archiveProject.svelte

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
Accordion,
1111
ActionMenu,
1212
Popover,
13-
Layout
13+
Layout,
14+
Divider
1415
} from '@appwrite.io/pink-svelte';
1516
import {
1617
IconAndroid,
@@ -264,7 +265,11 @@
264265
leadingIcon={IconSwitchHorizontal}
265266
on:click={() => handleMigrateProject(project)}
266267
>Migrate project</ActionMenu.Item.Button>
268+
<div class="action-menu-divider">
269+
<Divider />
270+
</div>
267271
<ActionMenu.Item.Button
272+
status="danger"
268273
leadingIcon={IconTrash}
269274
on:click={() => handleDeleteProject(project)}
270275
>Delete project</ActionMenu.Item.Button>
@@ -325,8 +330,8 @@
325330
onSubmit={confirmDelete}
326331
bind:error={deleteError}>
327332
<svelte:fragment slot="description">
328-
This archived project will be deleted along with all of its metadata, stats, and other
329-
resources.
333+
The archived project <strong>{projectToDelete?.name}</strong> will be deleted along with all
334+
of its metadata, stats, and other resources.
330335
<b>This action is irreversible.</b>
331336
</svelte:fragment>
332337

@@ -357,6 +362,11 @@
357362
.archive-projects-margin-top {
358363
margin-top: 36px;
359364
}
365+
.action-menu-divider {
366+
margin-inline: -1rem;
367+
padding-block-start: 0.25rem;
368+
padding-block-end: 0.25rem;
369+
}
360370
361371
.archive-projects-margin {
362372
margin-top: 16px;

0 commit comments

Comments
 (0)