Skip to content

Commit

Permalink
fix: Max out modal on smaller screens -- no margin (#3100)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjon3s authored May 2, 2024
1 parent 1c100d3 commit 422476a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,19 @@ export const FileTaggingModal = ({
maxWidth="xl"
aria-labelledby="dialog-heading"
PaperProps={{
sx: {
sx: (theme) => ({
width: "100%",
maxWidth: (theme) => theme.breakpoints.values.md,
borderRadius: 0,
borderTop: (theme) => `20px solid ${theme.palette.primary.main}`,
background: "#FFF",
margin: (theme) => theme.spacing(2),
},
height: "100%",
[theme.breakpoints.down("sm")]: {
margin: 0,
maxHeight: "none",
},
}),
}}
>
<DialogContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export const SelectMultiple = (props: SelectMultipleProps) => {
},
popper: {
sx: {
boxShadow: 10,
boxShadow: "0 0 10px 4px rgba(0, 0, 0, 0.5)",
},
},
}}
Expand Down
10 changes: 1 addition & 9 deletions editor.planx.uk/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,6 @@ const getThemeOptions = ({
},
},
},
MuiPopper: {
styleOverrides: {
root: {
// Override default popover box-shadow to increase visual separation
boxShadow: "0 0 10px 4px rgba(0, 0, 0, 0.5) !important",
},
},
},
MuiContainer: {
styleOverrides: {
root: {
Expand Down Expand Up @@ -492,7 +484,7 @@ const generateTeamTheme = (
linkColour: DEFAULT_PRIMARY_COLOR,
logo: null,
favicon: null,
}
},
): MUITheme => {
const themeOptions = getThemeOptions(teamTheme);
const theme = responsiveFontSizes(createTheme(themeOptions), { factor: 3 });
Expand Down

0 comments on commit 422476a

Please sign in to comment.