Skip to content

Commit f57cafc

Browse files
committed
delete button
1 parent 4284161 commit f57cafc

2 files changed

Lines changed: 25 additions & 2 deletions

File tree

src/Layout/NavMenu.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,12 +454,12 @@
454454

455455
// Delete button
456456
__builder.OpenElement(26, "button");
457-
__builder.AddAttribute(27, "class", "btn btn-sm btn-outline-danger folder-delete-btn");
457+
__builder.AddAttribute(27, "class", "btn-link text-danger folder-delete-btn");
458458
__builder.AddAttribute(28, "onclick", EventCallback.Factory.Create(this, () => NavState.ShowDeleteFolderConfirmation(folderId, folderName)));
459459
__builder.AddEventStopPropagationAttribute(29, "onclick", true);
460460
__builder.AddAttribute(30, "title", "Delete folder");
461461
__builder.OpenElement(31, "i");
462-
__builder.AddAttribute(32, "class", "bi bi-x-lg");
462+
__builder.AddAttribute(32, "class", "bi bi-trash-fill");
463463
__builder.CloseElement();
464464
__builder.CloseElement();
465465

src/wwwroot/css/custom-theme.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,29 @@ a:hover,
505505
background-color: rgba(239, 68, 68, 0.1) !important;
506506
}
507507

508+
.folder-delete-btn {
509+
color: #ef4444 !important;
510+
width: 28px;
511+
height: 28px;
512+
display: inline-flex;
513+
align-items: center;
514+
justify-content: center;
515+
padding: 0 !important;
516+
border: none;
517+
background: transparent;
518+
text-decoration: none;
519+
border-radius: 4px;
520+
transition: background-color 0.15s ease, opacity 0.2s ease;
521+
opacity: 0.6;
522+
font-size: 0.85rem;
523+
}
524+
525+
.folder-delete-btn:hover {
526+
color: #f87171 !important;
527+
background-color: rgba(239, 68, 68, 0.1) !important;
528+
}
529+
530+
508531
.user-section {
509532
color: var(--text-color);
510533
border-radius: 8px;

0 commit comments

Comments
 (0)