chore(layout/title_bar): address LLM review

This commit is contained in:
Elian Doran 2025-12-13 14:58:11 +02:00
parent 3851a94400
commit 694cd2bc7c
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@
} }
&.hidden { &.hidden {
display: none !important; display: none;
} }
.note-icon-widget { .note-icon-widget {

View File

@ -41,7 +41,7 @@ export default function InlineTitle() {
useLayoutEffect(() => { useLayoutEffect(() => {
if (!shown) return; if (!shown) return;
const titleRow = parentComponent.$widget[0].closest(".note-split")?.querySelector("&> .title-row"); const titleRow = parentComponent.$widget[0].closest(".note-split")?.querySelector(":scope > .title-row");
if (!titleRow) return; if (!titleRow) return;
titleRow.classList.toggle("hide-title", true); titleRow.classList.toggle("hide-title", true);
@ -175,9 +175,9 @@ function NoteTypeSwitcher() {
onClick={() => switchNoteType(note.noteId, noteType)} onClick={() => switchNoteType(note.noteId, noteType)}
/> />
))} ))}
<CollectionNoteTypes noteId={note.noteId} collectionTemplates={collectionTemplates} /> {collectionTemplates.length > 0 && <CollectionNoteTypes noteId={note.noteId} collectionTemplates={collectionTemplates} />}
<TemplateNoteTypes noteId={note.noteId} builtinTemplates={builtinTemplates} /> {builtinTemplates.length > 0 && <TemplateNoteTypes noteId={note.noteId} builtinTemplates={builtinTemplates} />}
<MoreNoteTypes noteId={note.noteId} restNoteTypes={restNoteTypes} /> {restNoteTypes.length > 0 && <MoreNoteTypes noteId={note.noteId} restNoteTypes={restNoteTypes} />}
</> </>
)} )}
</div> </div>