Skip to content

Commit

Permalink
Fix clipping on loading spinner in narrative itineraries
Browse files Browse the repository at this point in the history
  • Loading branch information
amy-corson-ibigroup committed Nov 6, 2024
1 parent 0b2a585 commit 04d63c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/narrative/loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Props = {

const Loading = ({ extraSmall, small }: Props): JSX.Element => {
return (
<div className="text-center percy-hide">
<div className="text-center percy-hide loading-container">
<StyledIconWrapper size={small ? '3x' : extraSmall ? '1x' : '5x'} spin>
<Redo />
</StyledIconWrapper>
Expand Down
5 changes: 5 additions & 0 deletions lib/components/narrative/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ export const NarrativeItinerariesContainer = styled.div`
display: flex;
flex-direction: column;
height: 100%;
// Prevent the loading spinner from clipping the top of the container
.loading-container {
margin-top: 25px;
}
`

export const ULContainer = styled.ul`
Expand Down

0 comments on commit 04d63c3

Please sign in to comment.