1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 08:42:41 +01:00

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

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

Reviewers: chad, epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: chad, epriestley, Korvin

Maniphest Tasks: T4902

Differential Revision: https://secure.phabricator.com/D8858
This commit is contained in:
Michael Peters 2014-04-29 05:00:48 -07:00 committed by epriestley
parent a46ead7980
commit b6fa4856d2
2 changed files with 5 additions and 0 deletions

View file

@ -98,6 +98,7 @@ final class PhabricatorRemarkupRuleEmbedFile
'width' => $file->getImageWidth(),
'height' => $file->getImageHeight(),
);
$image_class = 'phabricator-remarkup-embed-image-full';
break;
case 'thumb':
default:

View file

@ -271,6 +271,10 @@
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.20);
}
.phabricator-remarkup-embed-image-full {
display: inline-block;
}
.phabricator-remarkup table.remarkup-table {
border-collapse: separate;
border-spacing: 1px;