[MGNLUI-4259] Zoom of image field crops image Created: 24/Jul/17  Updated: 11/Mar/21  Resolved: 11/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Cedric Reichenbach Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLUI-4260 Closing zoom overlay of image field i... Closed
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Because the image is zoomed to original size, it might appear cropped (by browser viewport).

A simple solution could be to restrict zoomed images to window size through CSS:

img.overlay-child {
  max-width: 100%;
  max-height: 100%;
}

Generated at Mon Feb 12 09:14:55 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.