A better zoom is needed.
I want that the fitting zoom that is needed for a cardset is calculated automatically, based on the screen hight of the browser (view hight).
The zoom is hereby calculated by trying to maximise the following criteria:
The width of the picture gets optimised to fill 50% of the view width, without exceeding 100% of the view hight.
Examples how it should look like:
Pictures reaches hight limit before the horizontal limit:
Picture reaches width limit before the vertical limit:
A better zoom is needed. I want that the fitting zoom that is needed for a cardset is calculated automatically, based on the screen hight of the browser (view hight).
The zoom is hereby calculated by trying to maximise the following criteria: The width of the picture gets optimised to fill 50% of the view width, without exceeding 100% of the view hight.
Examples how it should look like: Pictures reaches hight limit before the horizontal limit:![image](https://github.com/Machriam/TheCardEditor/assets/78364349/0fe81898-6a17-43ec-ba22-6c1568edd589)
Picture reaches width limit before the vertical limit:![image](https://github.com/Machriam/TheCardEditor/assets/78364349/6819a810-b5e6-4e13-b9fd-7ab811915e3b)
Picture fits nearly perfect:![image](https://github.com/Machriam/TheCardEditor/assets/78364349/a16794eb-c2cc-4b8b-95dc-46999884aaa9)