Homec4science

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

Authored by epriestley <git@epriestley.com> on Jun 27 2014, 19:29.

Description

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

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.

Reviewers: chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T5500

Differential Revision: https://secure.phabricator.com/D9758

Details

Committed
epriestley <git@epriestley.com>Jun 27 2014, 19:29
Pushed
aubortJan 31 2017, 17:16
Parents
rPHe42e8aa61875: Tighten Remarkup and Fontkit CSS rules in Phabricator
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH32a42f37feb0: Set "max-width: 100%" on "size=full" Remarkup images (authored by epriestley <git@epriestley.com>).Jun 27 2014, 19:29