]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #13516 from MrPetovan/2023.09-rc
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 7 Oct 2023 16:48:13 +0000 (12:48 -0400)
committerGitHub <noreply@github.com>
Sat, 7 Oct 2023 16:48:13 +0000 (12:48 -0400)
Revert "Merge pull request #13512 from MrPetovan/bug/13506-allocated-width"

src/Content/Image.php
view/global.css

index 6adfa9dd761481e4f5c79a15f5e549032e7a3fd4..cc2fd5122c3f5353a8fe5b8021c4c143d228dcea 100644 (file)
@@ -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 {
index f49f8ac5e26510a966847844ed26aa03603717da..ecab5a1c159ea02508124dad8f47abb4316fdc19 100644 (file)
@@ -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;