CenterForOpenScience / cos.io

https://www.cos.io
Apache License 2.0
28 stars 74 forks source link

[EOSF-687] Photos change size on smaller screens #880

Closed baylee-d closed 7 years ago

baylee-d commented 7 years ago

Ticket

https://openscience.atlassian.net/browse/EOSF-687

Purpose

When the size of the screen gets smaller, the width of the images become smaller and it looks kind of smushed. The purpose of this ticket is to make the width a fixed size so that doesn't happen.

Changes

A new CSS styling was added to make the width of the image 250px with an automatic height. This will keep the images proportional.

Screenshots

screen shot 2017-05-30 at 2 18 23 pm

Before changes, the images would start to look smashed at around 1199px.


screen shot 2017-05-30 at 2 18 43 pm

By adding a set width of 250px with an automatic height, the images don't look smashed when the screen starts to get smaller.