Remove restriction on floated images being max 33% of document width

closes OLN-354
This commit is contained in:
Tom Moor
2024-04-21 11:14:18 -04:00
parent 1d01cb46e6
commit e2bc4c277b
2 changed files with 1 additions and 5 deletions

View File

@@ -33,9 +33,7 @@ const Image = (props: Props) => {
document.body.querySelector("#full-width-container")
);
const documentBounds = props.view.dom.getBoundingClientRect();
const maxWidth = layoutClass
? documentBounds.width / 3
: documentBounds.width;
const maxWidth = documentBounds.width;
const { width, height, setSize, handlePointerDown, dragging } = useDragResize(
{
width: node.attrs.width ?? naturalWidth,