fix: added fix for the height of the model content to not overflow on smaller devices

This commit is contained in:
Erik Tiekstra
2024-10-17 07:41:03 +02:00
parent 4c1ee66542
commit babb66d989
5 changed files with 2111 additions and 1796 deletions

View File

@@ -1,17 +1,17 @@
import { useState, useEffect, ChangeEvent } from "react"
import {
ModalFooter,
ModalBody,
ModalHeader,
ButtonGroup,
Button,
ButtonGroup,
Field as FieldComponent,
FieldLabel,
ModalBody,
ModalFooter,
ModalHeader,
TextInput,
} from "@contentstack/venus-components"
import { ChangeEvent, useEffect, useState } from "react"
import type { FocalPoint, InsertResponse } from "~/types/imagevault"
import FocalPointPicker from "~/shared-components/FocalPointPicker"
import type { FocalPoint, InsertResponse } from "~/types/imagevault"
type ImageEditModalProps = {
fieldData: InsertResponse
@@ -86,7 +86,9 @@ export default function ImageEditModal({
gap: "1rem",
alignItems: "center",
width: "auto",
maxHeight: "none",
maxHeight: "calc(90dvh - 124px)", // 124px is the height of the header and footer
maxWidth: "90dvw",
overflow: "auto",
}}
>
<FocalPointPicker