obsidian-iconize
obsidian-iconize copied to clipboard
Only display an icon in a tab if it is set for the note
Is your feature request related to a problem? Please describe. When you turn the Toggle Icon in Tabs setting ON, it displays the icon for the note in the tabs, as expected. If no icon is set for the note, a 'blank page' icon displays by default.
Describe the solution you'd like If icons in tabs is on, but there is no icon is set for the note, do not display an icon in the tab. In otherwords, only display an icon in the tab if it is set for the note.
Describe alternatives you've considered Potentially add a toggle option to show a default icon if people prefer this behavior. But the display of a default icon in the tabs is inconsistent with the behavior of the other locations where the icons appear.
Additional context
AS IS: (no icons set; shows 'blank page' icon)
TO BE:
This CSS snippet works for me, at least for now:
.mod-root .workspace-tab-header[data-type="markdown"] .workspace-tab-header-inner-icon:not([title]) {
display: none !important;
}
This CSS snippet works for me, at least for now:
.mod-root .workspace-tab-header[data-type="markdown"] .workspace-tab-header-inner-icon:not([title]) { display: none !important; }
Nice this works for me— thanks @AnttiBoman !