Skip to content

Switching to Live Preview after adding a caption renders wrong image size #372

@leafybees

Description

@leafybees

Describe the bug

After adding a caption to an image, the image's size becomes broken and large in Live Preview mode.

To Reproduce

Steps to reproduce the behavior:

  1. Add a caption to an image in Live Preview or Source mode
  2. Switch to Reading Mode
  3. Switch to Live Preview Mode
  4. Observe broken sizing of previewed image, expanding beyond readable line limits & requiring horizontal scrolling to view.

Expected behavior

  • Sizing of image remains consistent between Reading and Live Preview Mode.
  • Sizing of image remains consistent in Live Preview Mode with or without a caption.

Screenshots

image-converter-caption-resize-bug.mp4

Desktop (please complete the following information):

  • OS: macOS Sequoia 15.7.1
  • CPU: Apple M1
  • Obsidian version 1.10.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions