Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(mobile/note_icon): redundant separator
Elian Doran0e5aa401ef70
diff --git a/apps/client/src/widgets/note_icon.tsx b/apps/client/src/widgets/note_icon.tsxindex 5cc97d5c1f..bc4094439e 100644--- a/apps/client/src/widgets/note_icon.tsx+++ b/apps/client/src/widgets/note_icon.tsx@@ -172,7 +172,6 @@ function FilterRow({ note, filterByPrefix, search, setSearch, setFilterByPrefix,onHide: () => void;}) {const searchBoxRef = useRef<HTMLInputElement>(null);- const hasIconPacks = glob.iconRegistry.sources.length > 0;const hasCustomIcon = getIconLabels(note).length > 0;function resetToDefaultIcon() {@@ -212,7 +211,7 @@ function FilterRow({ note, filterByPrefix, search, setSearch, setFilterByPrefix,</div>)}- {hasIconPacks && <Dropdown+ {<DropdownbuttonClassName="bx bx-filter-alt"hideToggleArrownoSelectButtonStyle@@ -231,7 +230,7 @@ function FilterRow({ note, filterByPrefix, search, setSearch, setFilterByPrefix,iconActiondropdownContainerClassName="mobile-bottom-menu">- {hasIconPacks && <>+ {hasCustomIcon && <><FormListItemicon="bx bx-reset"onClick={resetToDefaultIcon}@@ -280,7 +279,7 @@ function IconFilterContent({ filterByPrefix, setFilterByPrefix }: {checked={filterByPrefix === "bx"}onClick={() => setFilterByPrefix("bx")}>{t("note_icon.filter-default")}</FormListItem>- <FormDropdownDivider />+ {glob.iconRegistry.sources.length > 1 && <FormDropdownDivider />}{glob.iconRegistry.sources.map(({ prefix, name, icon }) => (prefix !== "bx" && <FormListItem