Skip to content

No max-height on thumbnails allows oversized images to break layout #6264

Description

@MMilosz

Describe the bug

There is no max-height constraint on thumbnails, so an extremely tall image can break the layout. Observed on sandbox.dspace.org in both Chrome v154.0 and Firefox v156.0

Below, a very tall blue-red gradient is served as a thumbnail:

Image Image

To Reproduce

Prepare a large image. If you have ImageMagick available via CLI, you can do so by running:

$ magick -size 250x1000 gradient:blue-red gradient.png

Select any item. Go to Edit -> Bitstreams tab -> press Upload -> select the THUMBNAIL bundle and upload the image. Save and view the item page. Observe the thumbnail overflows

Expected behavior

Thumbnails should have a max-height constraint so oversized images don't break the layout

Related work

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buguxUser Experience related works

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions