Remove restriction on floated images being max 33% of document width
closes OLN-354
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user