mirror of
https://github.com/friendica/friendica
synced 2024-11-18 00:23:47 +00:00
Revert "Merge pull request #13512 from MrPetovan/bug/13506-allocated-width"
This reverts commitd1e6a16cde
, reversing changes made to6c9d3d42d3
.
This commit is contained in:
parent
d1e6a16cde
commit
35e15a13fb
2 changed files with 1 additions and 2 deletions
|
@ -39,7 +39,7 @@ class Image
|
||||||
$media = Renderer::replaceMacros(Renderer::getMarkupTemplate('content/image/single_with_height_allocation.tpl'), [
|
$media = Renderer::replaceMacros(Renderer::getMarkupTemplate('content/image/single_with_height_allocation.tpl'), [
|
||||||
'$image' => $PostMediaImages[0],
|
'$image' => $PostMediaImages[0],
|
||||||
'$allocated_height' => $PostMediaImages[0]->getAllocatedHeight(),
|
'$allocated_height' => $PostMediaImages[0]->getAllocatedHeight(),
|
||||||
'$allocated_width' => ($PostMediaImages[0]->previewWidth ?? $PostMediaImages[0]->width) . 'px',
|
'$allocated_max_width' => ($PostMediaImages[0]->previewWidth ?? $PostMediaImages[0]->width) . 'px',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -715,7 +715,6 @@ figure.img-allocated-height {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: center / auto rgba(0, 0, 0, 0.05) url(/images/icons/image.png) no-repeat;
|
background: center / auto rgba(0, 0, 0, 0.05) url(/images/icons/image.png) no-repeat;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
max-width: 100%;
|
|
||||||
}
|
}
|
||||||
figure.img-allocated-height img{
|
figure.img-allocated-height img{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Reference in a new issue