Page MenuHomePhabricator

Making `size=full` images have a shadow and be inline-block so the space next to them isn't clickable Fixes #4902
ClosedPublic

Authored by bluehawk on Apr 24 2014, 11:48 PM.
Tags
None
Referenced Files
F13214119: D8858.id21098.diff
Fri, May 17, 8:40 AM
Unknown Object (File)
Fri, May 3, 10:18 AM
Unknown Object (File)
Thu, Apr 25, 3:17 AM
Unknown Object (File)
Apr 11 2024, 10:56 AM
Unknown Object (File)
Apr 11 2024, 3:07 AM
Unknown Object (File)
Apr 1 2024, 3:22 AM
Unknown Object (File)
Mar 21 2024, 1:50 PM
Unknown Object (File)
Feb 14 2024, 5:39 PM

Details

Summary

Added .phabricator-remarkup-embed-image to full size images as well

Test Plan

Add an image e.g. {F123, size=full} and verify that it has a shadow and the space next to it isn't clickable

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

bluehawk retitled this revision from to Making `size=full` images have a shadow and be inline-block so the space next to them isn't clickable Fixes #4902.
bluehawk updated this object.
bluehawk edited the test plan for this revision. (Show Details)
bluehawk added a reviewer: epriestley.

This fix is correct, but let's give this a separate CSS class (like phabricator-remarkup-embed-image-full) which fixes the block styling but doesn't add the shadow? I think it's helpful to provide a "shadow = click it to see a bigger version" hint, and adding the shadow to the full size image limits some creative/intentional uses of images (like if you want to use an image as a fancy divider or something, I guess).

epriestley edited edge metadata.

My reasoning there is also pretty weak, so if you think I'm crazy and the shadow is desirable even in this case I'm open to keeping it.

This revision now requires changes to proceed.Apr 25 2014, 8:24 PM

I agree that some kind of distinction is nice, but the shadows help images
to stand out. Not sure what an ideal solution would be.

Also, would it unreasonable to have an option for turning off the shadow,
for cases were people really don't want it?

We already do full-sized images and memes without the shadow, would prefer to keep that consistency. The shadow is only to indicate “scaled/click for full-size”.

(I'd be 100% onboard with effect=... or filter=... but it needs to have at least like 5 effects, and they all have to be completely useless.)

bluehawk edited edge metadata.
  • Adding new .phabricator-remarkup-embed-image-full so the shadow is not applied to it
This revision is now accepted and ready to land.Apr 29 2014, 12:00 PM
epriestley updated this revision to Diff 21098.

Closed by commit rPb6fa4856d2e2 (authored by @bluehawk, committed by @epriestley).