obsidian-spaced-repetition
obsidian-spaced-repetition copied to clipboard
[FEAT] image scaling on mobile
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").
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
Yes. I think there should be an option:
- Show images using widths as specified (number after |).
- Ignore the specified widths to scale images to the width of the screen.
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.