obsidian-spaced-repetition icon indicating copy to clipboard operation
obsidian-spaced-repetition copied to clipboard

[FEAT] image scaling on mobile

Open dengrish opened this issue 1 year ago • 3 comments

ISSUE

I have many flashcards that include images. When I create them on a desktop computer, I set appropriate width using the bar |.

Example: ![[Pasted image 20240508142713.png|350]].

When I later review the flashcards on a smartphone, those images typically turn out to be too wide requiring horizontal scrolling. This makes reviewing on a smartphone inconvenient.


PROPOSED SOLUTION

When flashcards are reviewed on a smartphone, the bar that sets image width should be ignored so that image width is fit to the width of the screen.

Example: Image ![[Pasted image 20240508142713.png|350]] would be displayed as ![[Pasted image 20240508142713.png]] (removing "|350").

dengrish avatar May 09 '24 09:05 dengrish

Hi @dengrish thanks for the suggestion.

Would there be cases where this would not be wanted? Do you think it would need to be an option for users?

Or maybe conditional, e.g. only where the specified width is greater than a configurable constant?

Cheers Ronny

ronzulu avatar May 09 '24 10:05 ronzulu

Yes. I think there should be an option:

  1. Show images using widths as specified (number after |).
  2. Ignore the specified widths to scale images to the width of the screen.

dengrish avatar May 18 '24 11:05 dengrish

Same issue here - please fix that.

I think there are many more users who are annoyed with that than users who want that full width.

raphaelmosaic avatar Jul 18 '24 14:07 raphaelmosaic