From b12236576b51c799b7ae2f12837fbe633dbe65b3 Mon Sep 17 00:00:00 2001 From: M Fahru Date: Wed, 23 Oct 2024 08:07:19 -0700 Subject: [PATCH] Merge pull request #21286 from overleaf/mf-fix-layout-search-margin-top [web] Remove margin-top on template gallery page without search GitOrigin-RevId: 91335298b15f403e268f8e506ff373345922188b --- .../stylesheets/bootstrap-5/components/gallery-search.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/stylesheets/bootstrap-5/components/gallery-search.scss b/services/web/frontend/stylesheets/bootstrap-5/components/gallery-search.scss index b949ab1633..bbe3d40118 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/components/gallery-search.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/components/gallery-search.scss @@ -23,11 +23,16 @@ } .search-hits { - margin-top: var(--spacing-16); display: flex; flex-direction: column; gap: var(--spacing-08); + .search-hits-loading, + .search-hits-empty, + .search-hit:first-of-type { + margin-top: var(--spacing-16); + } + .search-hit { display: flex; gap: var(--spacing-08);