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,13 +1,13 @@
import React, { useRef, useCallback, PropsWithChildren } from "react"
import { Tooltip, Icon, cbModal } from "@contentstack/venus-components"
import { Icon, Tooltip, cbModal } from "@contentstack/venus-components"
import React, { PropsWithChildren, useCallback, useRef } from "react"
import { Resizable } from "re-resizable"
import EmbedBtn from "./EmbedBtn"
import ImageEditModal from "./ImageEditModal"
import type {
IRteParam,
IRteElementType,
IRteParam,
} from "@contentstack/app-sdk/dist/src/RTE/types"
import type { InsertResponse } from "~/types/imagevault"
@@ -38,6 +38,7 @@ export function ImageElement({ children, element, rte }: ImageElementProps) {
style: {
content: {
maxHeight: "90dvh",
maxWidth: "90dvw",
width: "auto",
},
overlay: {},