From 1d4fedf4f24505cb219c7fd3408267b7f649d48b Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 3 Jun 2024 12:57:34 +0100 Subject: [PATCH] Fixed subtitle not fully collapsing for auto-expansion closes https://linear.app/tryghost/issue/MOM-149 - our styles set all `textarea` elements to have a min-height of 100px which wasn't being overridden for our subtitle element meaning our auto-expand code was never able to fully collapse it to a single line --- ghost/admin/app/styles/layouts/editor.css | 1 + 1 file changed, 1 insertion(+) diff --git a/ghost/admin/app/styles/layouts/editor.css b/ghost/admin/app/styles/layouts/editor.css index e7c0e1bef5..da7cb96587 100644 --- a/ghost/admin/app/styles/layouts/editor.css +++ b/ghost/admin/app/styles/layouts/editor.css @@ -793,6 +793,7 @@ body[data-user-is-dragging] .gh-editor-feature-image-dropzone { width: 100%; max-width: unset; min-width: auto; + min-height: auto; /* Allows element to collapse for auto-expand calculation */ margin: 0; padding: 0; border: none;