Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore css to limit figure preview size #638

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

asdfzdfj
Copy link
Contributor

added back css that limits the size of attached figure image to not exceeds 600x500px, the same size used when generating the thumbnails

back when making the new sensitive figure, there was a bit of problem in keeping the image size limited without destroying the aspect ratio or causes image stretching, so that was left out and relied on generated thumbnails for limiting the figure size, however with the later introduced large image handling where the link to original image may be used for the figure instead, which can make the rendered figure bigger than what it should be

added back css that limits the size of attached figure image to not
exceeds 600x500px, the same size used when generating the thumbnails

back when making the new sensitive figure, there was a bit of problem in
keeping the image size limited without destroying the aspect ratio or
causes image stretching, so that was left out and relied on generated
thumbnails for limiting the figure size, however with the later
introduced large image handling where the link to original image may be
used for the figure instead, which can make the rendered figure bigger
than what it should be
@melroy89 melroy89 added frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end accessibility Accessibility related issues and pull requests labels Mar 28, 2024
@TheVillageGuy
Copy link
Contributor

I would appreciate 600x600 so square images will fit perfectly

@asdfzdfj asdfzdfj merged commit fe71273 into main Mar 29, 2024
7 checks passed
@asdfzdfj asdfzdfj deleted the fix/restore-figure-post-thumb-size-cap branch March 29, 2024 05:21
@asdfzdfj
Copy link
Contributor Author

asdfzdfj commented Mar 29, 2024

I would appreciate 600x600 so square images will fit perfectly

you should still get the square image thumbnail, albeit at 500x500px because it hit the height limit first

@TheVillageGuy
Copy link
Contributor

TheVillageGuy commented Mar 29, 2024 via email

@TheVillageGuy
Copy link
Contributor

Screenshot_20240329-104426

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Accessibility related issues and pull requests frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants