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
Unknown Object (File)
Fri, Dec 20, 9:57 AM
Unknown Object (File)
Tue, Dec 3, 10:29 AM
Unknown Object (File)
Nov 18 2024, 5:03 AM
Unknown Object (File)
Nov 9 2024, 5:30 PM
Unknown Object (File)
Nov 1 2024, 10:46 AM
Unknown Object (File)
Nov 1 2024, 8:32 AM
Unknown Object (File)
Oct 27 2024, 7:56 PM
Unknown Object (File)
Oct 26 2024, 5:43 AM

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
Branch
arcpatch-D8858
Lint
Lint Skipped
Unit
No Test Coverage
Build Status
Buildable 103
Build 103: [Placeholder Plan] Wait for 30 Seconds

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).