diff --git a/app/scenes/Document/components/Document.tsx b/app/scenes/Document/components/Document.tsx index db555f6e83..3f2cafcfa2 100644 --- a/app/scenes/Document/components/Document.tsx +++ b/app/scenes/Document/components/Document.tsx @@ -507,12 +507,7 @@ class DocumentScene extends React.Component { onSave={this.onSave} headings={this.headings} /> - +
{ )} - { )} - + )} - +
{isShare && !parseDomain(window.location.origin).custom && !auth.user && ( diff --git a/shared/editor/components/hooks/useDragResize.ts b/shared/editor/components/hooks/useDragResize.ts index fea20ca248..14cd9b1902 100644 --- a/shared/editor/components/hooks/useDragResize.ts +++ b/shared/editor/components/hooks/useDragResize.ts @@ -1,4 +1,5 @@ import * as React from "react"; +import { EditorStyleHelper } from "../../styles/EditorStyleHelper"; type DragDirection = "left" | "right"; @@ -113,7 +114,8 @@ export default function useDragResize(props: Params): ReturnValue { getComputedStyle(props.ref.current).getPropertyValue( "--document-width" ) - ) + ) - + EditorStyleHelper.padding * 2 : Infinity; setMaxWidth(max); setSizeAtDragStart({