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:
parent
a46ead7980
commit
b6fa4856d2
2 changed files with 5 additions and 0 deletions
|
@ -98,6 +98,7 @@ final class PhabricatorRemarkupRuleEmbedFile
|
||||||
'width' => $file->getImageWidth(),
|
'width' => $file->getImageWidth(),
|
||||||
'height' => $file->getImageHeight(),
|
'height' => $file->getImageHeight(),
|
||||||
);
|
);
|
||||||
|
$image_class = 'phabricator-remarkup-embed-image-full';
|
||||||
break;
|
break;
|
||||||
case 'thumb':
|
case 'thumb':
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -271,6 +271,10 @@
|
||||||
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.20);
|
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.20);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.phabricator-remarkup-embed-image-full {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
.phabricator-remarkup table.remarkup-table {
|
.phabricator-remarkup table.remarkup-table {
|
||||||
border-collapse: separate;
|
border-collapse: separate;
|
||||||
border-spacing: 1px;
|
border-spacing: 1px;
|
||||||
|
|
Loading…
Reference in a new issue