Skip to content

Commit

Permalink
chore: comment explaining SearchResultsPane minHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Mar 25, 2024
1 parent 2d7bff3 commit 8fd79e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/components/Search/SearchResultsPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8fd79e4

Please sign in to comment.