Skip to content

Commit

Permalink
feat: Correct positioning for address loading indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjon3s committed May 17, 2024
1 parent cf7ed69 commit d60cd3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const AddressLoadingWrap = styled(Box)(({ theme }) => ({
position: "absolute",
bottom: theme.spacing(1),
margin: 0,
paddingRight: theme.spacing(14),
},
}));

Expand Down
6 changes: 5 additions & 1 deletion editor.planx.uk/src/components/DelayedLoadingIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ export interface Props {

const Root = styled(Box, {
shouldForwardProp: (prop) => prop !== "inline",
})<Props>(({ inline }) => ({
})<Props>(({ inline, theme }) => ({
padding: 60,
display: "flex",
alignItems: "center",
justifyContent: "center",
...(inline && {
padding: 0,
[theme.breakpoints.up("md")]: {
justifyContent: "flex-start",
paddingLeft: theme.spacing(16),
},
}),
}));

Expand Down

0 comments on commit d60cd3b

Please sign in to comment.