From b8144a1361ad707789040a7f131a1b11fa8297d0 Mon Sep 17 00:00:00 2001 From: uldisrudzitis Date: Tue, 25 Aug 2026 14:37:24 +0300 Subject: [PATCH] Fix content shift in editor if gallery is empty: shows placeholder on entry hover --- engine/css/editor.css.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/engine/css/editor.css.php b/engine/css/editor.css.php index a950f8d3d..0924667c6 100644 --- a/engine/css/editor.css.php +++ b/engine/css/editor.css.php @@ -459,8 +459,16 @@ .xGalleryContainer { clear: left; - min-height: 20px; } + .xGalleryContainer:not(.xGalleryHasImages) { + max-height: 0; + overflow: hidden; + transition: max-height .15s ease-out; + } + .xEntry:hover .xGalleryContainer:not(.xGalleryHasImages), + .xEntry:focus-within .xGalleryContainer:not(.xGalleryHasImages) { + max-height: 24px; + } .xGalleryContainer .entryGallery { position: relative; }