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] {