Page MenuHomePhabricator

Set "max-width: 100%" on "size=full" Remarkup images
ClosedPublic

Authored by epriestley on Jun 27 2014, 5:18 PM.
Tags
None
Referenced Files
F18769620: D9758.id23429.diff
Wed, Oct 8, 8:23 AM
F18699937: D9758.diff
Sat, Sep 27, 1:58 PM
F18401850: D9758.id.diff
Aug 29 2025, 7:39 PM
F18374124: D9758.diff
Aug 28 2025, 8:22 AM
F17840653: D9758.id23429.diff
Jul 26 2025, 9:24 PM
F17820646: D9758.diff
Jul 26 2025, 2:07 AM
F17781545: D9758.id23430.diff
Jul 24 2025, 6:34 AM
F17755292: D9758.diff
Jul 22 2025, 12:09 PM
Subscribers

Details

Summary

Fixes T5500. When an image is embedded with {Fxx, size=full}, add "max-width: 100%;" so that large images are scaled down to the size of the container. This seems like a better and more reasonable behavior than having them scroll. You can still lightbox them or right-click -> view if you really want the full image.

Test Plan

Dragged window around with a very large size=full image. At large window sizes, the image displayed at 100%. At smaller window sizes, the image was scaled to fit.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Set "max-width: 100%" on "size=full" Remarkup images.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jun 27 2014, 5:27 PM
epriestley updated this revision to Diff 23431.

Closed by commit rP32a42f37feb0 (authored by @epriestley).