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") document.body.querySelector("#full-width-container")
); );
const documentBounds = props.view.dom.getBoundingClientRect(); const documentBounds = props.view.dom.getBoundingClientRect();
const maxWidth = layoutClass const maxWidth = documentBounds.width;
? documentBounds.width / 3
: documentBounds.width;
const { width, height, setSize, handlePointerDown, dragging } = useDragResize( const { width, height, setSize, handlePointerDown, dragging } = useDragResize(
{ {
width: node.attrs.width ?? naturalWidth, width: node.attrs.width ?? naturalWidth,

View File

@@ -529,7 +529,6 @@ iframe.embed {
.image-right-50 { .image-right-50 {
float: right; float: right;
width: 33.3%;
margin-left: 2em; margin-left: 2em;
margin-bottom: 1em; margin-bottom: 1em;
clear: initial; clear: initial;
@@ -537,7 +536,6 @@ iframe.embed {
.image-left-50 { .image-left-50 {
float: left; float: left;
width: 33.3%;
margin-right: 2em; margin-right: 2em;
margin-bottom: 1em; margin-bottom: 1em;
clear: initial; clear: initial;