From 35e15a13fb46279e2d59dd700c10525ca1003d86 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 7 Oct 2023 12:46:20 -0400 Subject: [PATCH] Revert "Merge pull request #13512 from MrPetovan/bug/13506-allocated-width" This reverts commit d1e6a16cde5f83d22bfd3adcac585dce0d419cf8, reversing changes made to 6c9d3d42d3e0c584b9b7082cb979cda2f395a849. --- src/Content/Image.php | 2 +- view/global.css | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Content/Image.php b/src/Content/Image.php index 6adfa9dd76..cc2fd5122c 100644 --- a/src/Content/Image.php +++ b/src/Content/Image.php @@ -39,7 +39,7 @@ class Image $media = Renderer::replaceMacros(Renderer::getMarkupTemplate('content/image/single_with_height_allocation.tpl'), [ '$image' => $PostMediaImages[0], '$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 { diff --git a/view/global.css b/view/global.css index f49f8ac5e2..ecab5a1c15 100644 --- a/view/global.css +++ b/view/global.css @@ -715,7 +715,6 @@ figure.img-allocated-height { position: relative; background: center / auto rgba(0, 0, 0, 0.05) url(/images/icons/image.png) no-repeat; margin: 0; - max-width: 100%; } figure.img-allocated-height img{ position: absolute;