Skip to content

Commit

Permalink
fix: Ensure main components have full-width (#3037)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Apr 18, 2024
1 parent cac43e2 commit 849f39c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion editor.planx.uk/src/pages/Preview/Questions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const Questions = ({ previewEnvironment }: QuestionsProps) => {
</BackBar>

{node && (
<Box component="main" id="main-content">
<Box component="main" id="main-content" sx={{ width: "100%" }}>
<ErrorBoundary FallbackComponent={ErrorFallback}>
<Node
node={node}
Expand Down
4 changes: 2 additions & 2 deletions editor.planx.uk/src/pages/layout/SaveAndReturnLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ const SaveAndReturnLayout = ({ children }: PropsWithChildren) => {
{
[AppPath.SingleSession]: children,
[AppPath.Save]: (
<Box component="main" id="main-content">
<Box component="main" id="main-content" sx={{ width: "100%" }}>
<SavePage />
</Box>
),
[AppPath.Resume]: (
<Box component="main" id="main-content">
<Box component="main" id="main-content" sx={{ width: "100%" }}>
<ResumePage />
</Box>
),
Expand Down

0 comments on commit 849f39c

Please sign in to comment.