Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Embedded images in infoboxes are always left justified in live preview and reading mode #358

Open
3 of 6 tasks
jboehm77 opened this issue Dec 29, 2024 · 2 comments
Open
3 of 6 tasks
Assignees
Labels
bug Something isn't working

Comments

@jboehm77
Copy link

jboehm77 commented Dec 29, 2024

Describe the bug

In both live preview and reading modes, images embedded inside infobox callouts are left justified, regardless of whether the "center" image adjustment attribute is used. Other position attributes, like "right" appear to work as intended.

Expected behavior
Embedding an image with the "center" position attribute should align the image in the horizontal center of the infobox while in reading view.

To Reproduce

Steps to reproduce the behavior:

  1. Create an infobox callout
  2. Embed an image file
  3. Add the "center" image adjustment attribute to the embed
  4. See error

Screenshots

Screenshot of the error in reading mode:
image

Source view of the problematic section:
image

This is what happens if I use "right" instead of "center":
image

Mode

What mode(s) does the bug occur? Select all that apply.

  • Source Mode
  • Live Preview
  • Reading Mode

OS

Where does the bug occur?

  • Desktop
  • Mobile

Versions

  • Obsidian Version: 1.7.7
  • ITS Theme Version:
  • Using ITS Snippet:

Additional context

This seems to have been introduced only recently, as the default position inside infoboxes appeared to be "center", and using positioning attributes wasn't necessary as of a few weeks ago. I am using the version of image adjustments that comes standard with the ITS Theme, not the snippet version.

@jboehm77 jboehm77 added the bug Something isn't working label Dec 29, 2024
@SlRvb SlRvb added this to ITS Theme Jan 2, 2025
@github-project-automation github-project-automation bot moved this to Queue in ITS Theme Jan 2, 2025
@SlRvb SlRvb moved this from Queue to In Progress in ITS Theme Jan 7, 2025
@SlRvb
Copy link
Owner

SlRvb commented Jan 7, 2025

🤔 I can't seem to recreate this, all my images (even webps) are centered by default in an infobox. Might wanna double check if plugins or snippets are conflicting with my stuff and let me know if you find the issue!

@SlRvb SlRvb moved this from In Progress to Hiatus in ITS Theme Jan 7, 2025
@jboehm77
Copy link
Author

jboehm77 commented Jan 7, 2025

Actually, the issue now appears to have disappeared on my end. Not sure what could have caused or fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Hiatus
Development

No branches or pull requests

2 participants