Skip to content

Build your personal knowledge base with Trilium Notes

style(client): move note icon root layout to CSS

Ampafb308157268
diff --git a/apps/client/src/widgets/note_icon.css b/apps/client/src/widgets/note_icon.css
index 8b99fb3861..1b232cfb86 100644
--- a/apps/client/src/widgets/note_icon.css
+++ b/apps/client/src/widgets/note_icon.css
@@ -1,3 +1,7 @@
+div.note-icon-root {
+ display: contents;
+}
+
div.note-icon-widget {
/* The size of the icon */
--note-icon-size: 30px;
diff --git a/apps/client/src/widgets/note_icon.tsx b/apps/client/src/widgets/note_icon.tsx
index 84829c9678..ceea03ff70 100644
--- a/apps/client/src/widgets/note_icon.tsx
+++ b/apps/client/src/widgets/note_icon.tsx
@@ -30,7 +30,7 @@ export default function NoteIcon() {
return (
// ReactWrappedWidget moves this root out of its render container. Keep it stable so a keyed
// picker replacement is inserted into the live layout rather than the detached container.
- <div style={{ display: "contents" }}>
+ <div className="note-icon-root">
<IconPickerButton
key={note?.noteId}
icon={icon ?? "bx bx-empty"}