From f718331eb48f49aa29f9fcad0475f1c1a455a4fe Mon Sep 17 00:00:00 2001 From: amy-corson-ibigroup <115499534+amy-corson-ibigroup@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:33:06 -0600 Subject: [PATCH] Fix short stops container in route viewer --- lib/components/viewers/styled.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/components/viewers/styled.ts b/lib/components/viewers/styled.ts index 9e0131c07..8a870a84e 100644 --- a/lib/components/viewers/styled.ts +++ b/lib/components/viewers/styled.ts @@ -69,10 +69,10 @@ export const StopContainer = styled.ol` color: ${(props) => props?.textColor || DARK_TEXT_GREY}; background-color: ${(props) => props?.backgroundColor || '#fff'}; overflow-y: scroll; - height: 100%; - /* 100px bottom padding is needed to ensure all stops - are shown when browsers don't calculate 100% sensibly */ - padding: 15px 0 100px; + /* Calculate the height of the container a little short to ensure all stops + are shown when browsers don't calculate 100% sensibly. */ + height: calc(100% - 140px); + padding: 15px 0 0px; ` export const StopLink = styled.button` color: ${(props) => props?.textColor + 'da' || DARK_TEXT_GREY};