wiktoriavh/Spectrum

[BUG] Icons provided by Icon Shortcodes appear off the bottom of the line

jmccance opened this issue ยท 3 comments

Describe the bug

When using aidenx/obsidian-icon-shortcodes., non-emoji icons are aligned with the top of the icon on the bottom of the line. (See screenshots.

To Reproduce

Steps to reproduce the behavior:

  1. Install "Icon Shortcodes" community plugin
  2. Enable Spectrum theme
  3. Type Some text :luc-github and hit enter to select the icon.
  4. Observe alignment issues

Expected behavior

The icon be aligned with other text on the line.

Screenshots

Given this text:

Text aligns properly
๐Ÿ‹๐ŸŽ๐ŸŠ Align more-or-less properly, but overlap
:luc_github::fas_folder:Icons provided by icon-shortcodes are misaligned and also overlap

Spectrum renders like this:

image

While the default theme renders like this:

image

Desktop (please complete the following information):

  • OS: macOS 12.2.1
  • Obsidian Version: v0.13.31

Additional context

I recognize this might not specifically be an issue with Spectrum, and might actually be a bug with the Icon Shortcodes plugin or just a weird interaction between Spectrum and the plugin. I decided to start with an issue here, since it seems to not occur when using the default theme.

I will have to investigate the styling of the icons to make a fix. I will take a look.

Should be fixed now.

Thank you! ๐ŸŽ‰ Confirmed it's working as expected for me now.