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

Screenshots are cropped #38

Open
lassoan opened this issue Aug 12, 2021 · 2 comments
Open

Screenshots are cropped #38

lassoan opened this issue Aug 12, 2021 · 2 comments

Comments

@lassoan
Copy link
Contributor

lassoan commented Aug 12, 2021

Screenshot images are displayed cropped, see for example SlicerRT:

image

Also, when clicking on the image, it should be shown maximized.

@jcfr
Copy link
Contributor

jcfr commented Oct 21, 2022

Setting background-size: contain to the div including the image allow to have the screenshot properly sized.

See https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Backgrounds_and_Borders/Resizing_background_images#special_values_contain_and_cover

Before After
image image

@jcfr
Copy link
Contributor

jcfr commented Oct 21, 2022

Next step:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants