From 8fd79e4689e254260270fd2193842125929cc9b6 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Mon, 25 Mar 2024 14:12:54 -0400 Subject: [PATCH] chore: comment explaining SearchResultsPane minHeight --- src/js/components/Search/SearchResultsPane.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/components/Search/SearchResultsPane.tsx b/src/js/components/Search/SearchResultsPane.tsx index fa7201c3..9b974138 100644 --- a/src/js/components/Search/SearchResultsPane.tsx +++ b/src/js/components/Search/SearchResultsPane.tsx @@ -29,6 +29,8 @@ const SearchResultsPane = ({ padding: '10px 33px', maxWidth: '1200px', width: '100%', + // Set a minimum height (i.e., an expected final height, which can be exceeded) to prevent this component from + // suddenly increasing in height after it loads. This is calculated from the sum of the following parts: // chart (300) // + heading (24 + 8 [0.5em] bottom margin) // + card body padding (2*24 = 48)