Skip to content

Build your personal knowledge base with Trilium Notes

feat(note_icon): add an empty option (closes #7370)

Elian Dorand534db29c94c
diff --git a/apps/client/src/widgets/icon_list.ts b/apps/client/src/widgets/icon_list.ts
index a152e9a342..cef6eaf34a 100644
--- a/apps/client/src/widgets/icon_list.ts
+++ b/apps/client/src/widgets/icon_list.ts
@@ -147,6 +147,12 @@ const categories: Category[] = [
];
const icons: Icon[] = [
+ {
+ name: "empty",
+ slug: "empty",
+ category_id: 113,
+ type_of_icon: "REGULAR"
+ },
{
name: "child",
slug: "child-regular",
diff --git a/apps/client/src/widgets/note_icon.css b/apps/client/src/widgets/note_icon.css
index a05be824d8..a3be50dc66 100644
--- a/apps/client/src/widgets/note_icon.css
+++ b/apps/client/src/widgets/note_icon.css
@@ -56,4 +56,16 @@
.note-icon-widget .icon-list span:hover {
border: 1px solid var(--main-border-color);
+}
+
+.note-icon-widget .icon-list span.bx-empty {
+ width: unset;
+}
+
+.note-icon-widget .icon-list span.bx-empty::before {
+ display: inline-block;
+ content: "";
+ border: 1px dashed var(--muted-text-color);
+ width: 1em;
+ height: 1em;
}
\ No newline at end of file