FlorianWoelki / obsidian-iconize

Simply add icons to anything you want in Obsidian.
https://florianwoelki.github.io/obsidian-iconize/
MIT License
883 stars 62 forks source link

Broken filename alignment in explorer #263

Closed davidedellagiustina closed 1 year ago

davidedellagiustina commented 1 year ago

Describe the bug Apparently, sometimes the alignment of files without an icon breaks in the file explorer (see screenshot below).

To Reproduce I cannot reproduce this deterministically, but the following sometimes works:

  1. create some note in a folder;
  2. close vault and Obsidian;
  3. re-open vault;
  4. create some other note;
  5. newly created note seems to be more indented than the one created before.

Expected behavior Consistent alignment even if no icon / inheris icon is selected.

Screenshots immagine

FlorianWoelki commented 1 year ago

I cannot reproduce this in any way.

If you say that there does no icon exists for the note, then I don't think it is a problem with Iconize because it doesn't change any styling of the notes without icons.

davidedellagiustina commented 1 year ago

@FlorianWoelki That's also an option, but disabling the Iconize plugin immediately fixes it.

If it helps in trying to reproduce, the Templates folder in my screenshot was inside some other top-level folder with no icon either. I'll try to gether more info an the problem later today.

davidedellagiustina commented 1 year ago

I investigated a bit more and here's what I found:

immagine

Is anybody else able to reproduce? I'm on Obsidian 1.4.14, installer 1.4.13 (might update it later just ot check).

FlorianWoelki commented 1 year ago

I investigated a bit more and here's what I found:

  • apparently, I am only able to reproduce for notes inside my Templates folder, which is itself nested inside a Schema folder;
  • the same happens if there are notes with icons in the same folder (see picture below, where Thing 1 was created before reloading Obsidian, and Thing 2 was created after the reload);
  • the "longer" indentation also happens after removing some an icon from a note file;
  • I re-tried disabling Iconize, and actually it does not fix the issue, I have no idea why it looked like it did last time I checked.

immagine

Is anybody else able to reproduce? I'm on Obsidian 1.4.14, installer 1.4.13 (might update it later just ot check).

So I'll close the issue for now, because it does not relate to Iconize.