From 02baea8f3c883c204c6177af3b59a37593f5e5f5 Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Tue, 20 Aug 2024 15:47:21 +0200 Subject: [PATCH] Complete collapse --- CHANGELOG.rst | 2 ++ content_editor/static/content_editor/content_editor.css | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ad2502e6..aad32999 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,8 @@ Next version - Disabled dragging plugins when changes are not allowed anyway. - Stopped collapsing plugin initially when they contain errors. - Added automatic scrolling while dragging plugins. +- Fixed a bug where a plugin with multiple fieldsets wouldn't collapse + completely. 7.0 (2024-05-31) diff --git a/content_editor/static/content_editor/content_editor.css b/content_editor/static/content_editor/content_editor.css index 63e52c4b..62ae29b6 100644 --- a/content_editor/static/content_editor/content_editor.css +++ b/content_editor/static/content_editor/content_editor.css @@ -157,6 +157,12 @@ h3[draggable] { border-bottom: 1px solid var(--hairline-color); } +.order-machine .inline-related.for-deletion > fieldset:nth-child(n + 3), +.order-machine .inline-related.collapsed > fieldset:nth-child(n + 3) { + /* grid-template-rows animates the first fieldset, all other fieldsets jump out of existence */ + display: none; +} + .order-machine .inline-related.for-deletion > h3::after { content: ""; position: absolute;