Skip to content

Commit

Permalink
Fix short stops container in route viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
amy-corson-ibigroup committed Nov 19, 2024
1 parent ed5ba5f commit f718331
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/components/viewers/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ export const StopContainer = styled.ol<RenderProps>`
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<RenderProps>`
color: ${(props) => props?.textColor + 'da' || DARK_TEXT_GREY};
Expand Down

0 comments on commit f718331

Please sign in to comment.