fix: added fix for the height of the model content to not overflow on smaller devices
This commit is contained in:
@@ -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: {},
|
||||
|
||||
Reference in New Issue
Block a user