Skip to content

Commit

Permalink
fix: only allow dialog content to be scrollable (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
finnar-bin authored Jun 15, 2023
1 parent d74a90a commit 4f076d8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ export const ComingSoon = () => {
height="100%"
justifyContent="center"
alignItems="center"
position="absolute"
top={0}
left={0}
right={0}
minHeight={428}
>
<Box
display="flex"
Expand Down
2 changes: 1 addition & 1 deletion src/apps/schema/src/app/components/AddFieldModal/Learn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Learn = ({ type }: Props) => {
const data = FIELD_COPY_CONFIG[category]?.find((item) => item.type === type);

return (
<Box data-cy="LearnTab">
<Box data-cy="LearnTab" minHeight={428}>
<Box>
<Typography variant="h5" fontWeight={600} mb={0.5}>
{stringStartsWithVowel(TYPE_TEXT[type])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const MediaRules = ({
display="flex"
flexDirection="column"
height="100%"
minHeight={428}
>
<Box
display="flex"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -558,11 +558,23 @@ export const FieldForm = ({
sx={{
p: 2.5,
position: "relative",
minHeight: "486px",
}}
>
{activeTab === "details" && (
<Grid data-cy="DetailsTab" container spacing={2.5} maxWidth="480px">
<Grid
data-cy="DetailsTab"
container
spacing={2.5}
maxWidth="480px"
minHeight={448}
mt={-2.5} //Offset grid item default top padding
ml={0}
sx={{
"&.MuiGrid-container .MuiGrid-item": {
pl: 0,
},
}}
>
{FORM_CONFIG[type]?.details?.map((fieldConfig, index) => {
// Only show tooltip field when updating a field that already has a tooltip value
const hideTooltipField =
Expand Down

0 comments on commit 4f076d8

Please sign in to comment.