From 0ffb2b06dbdc61b434d1895a3959c61004b9bf64 Mon Sep 17 00:00:00 2001 From: Andreas Reinhold / reini Date: Mon, 14 Sep 2026 06:13:45 +0200 Subject: [PATCH] Hold the docked search view's 240px floor to a view with results A search whose slot renders nothing would otherwise open as an empty 240px box; M3's minimum is about a container with something in it. Plan step 20, finding IN-20. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9 --- resources/css/components/search.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/css/components/search.css b/resources/css/components/search.css index a4196d05..4c81443a 100644 --- a/resources/css/components/search.css +++ b/resources/css/components/search.css @@ -182,8 +182,6 @@ display: flex; flex-direction: column; max-width: var(--search-open-width); - /* M3: the docked container is at least 240px tall and at most two thirds of the window. */ - min-height: 15rem; max-height: min(40rem, 70dvh); padding-top: var(--search-height); overflow: hidden; @@ -204,6 +202,12 @@ } } + /* M3: the docked container is at least 240px tall — once there is something in it to be tall + about; a search with nothing to show stays the height of its bar. */ + [data-search-view]:has([data-search-results]) { + min-height: 15rem; + } + /* No divider: that belongs to the divided style, which Expressive deprecates in favour of the contained one this file draws. */ [data-search-results] {