obsidian-iconize icon indicating copy to clipboard operation
obsidian-iconize copied to clipboard

Only display an icon in a tab if it is set for the note

Open darnocer opened this issue 1 year ago • 2 comments

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) image

TO BE: image

darnocer avatar Dec 22 '23 17:12 darnocer

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;
}

AnttiBoman avatar Mar 20 '24 17:03 AnttiBoman

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 !

darnocer avatar Mar 22 '24 23:03 darnocer