SlRvb / Obsidian--ITS-Theme

Theme designed with readability and customizability in mind. Change it easily to your liking with the Style Settings plugin installed.
https://publish.obsidian.md/slrvb-docs/ITS+Theme/ITS+Theme
GNU General Public License v2.0
553 stars 115 forks source link

[FR] Relative image size scaling #301

Closed TheAussieTinker closed 5 months ago

TheAussieTinker commented 5 months ago

Is your feature request related to a problem? Please describe.

When you resize an image by assigning the width in pixels, it doesn't translate well across devices.

Describe the solution you'd like

Having an option to adjust the size of the image based on the size of the workspace. This could occur with syntax like: ![[image.png|50%]] where the 50% means the width of the image will take up 50% of the workspace.

Describe alternatives you've considered

Relative to the screen size if relative to the workspace is too hard.

SlRvb commented 5 months ago

Oops, I should've added this feature to the docs. I can't quite do it your way but I do have relative sizing on my image adjustments. Do let me know if the documentation here at the bottom about it is unclear about how to use it, thanks for reminding me I hadn't put it on there! 🙈