Skip to content

Commit 6e551b0

Browse files
authoredFeb 28, 2024
fix(core): change modalWidth of inlineObjects to 1 by default (#5839)
* fix(core): change modalWidth of reference to 1 by default * fix(core): add default width of inlineObject to be 1
1 parent 5d060af commit 6e551b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/sanity/src/core/form/inputs/PortableText/object/modals/ObjectEditModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function ObjectEditModal(props: {
4242
onClose()
4343
}, [onClose])
4444

45-
const modalWidth = schemaModalOption?.width
45+
const modalWidth = schemaModalOption?.width || 1
4646

4747
if (modalType === 'popover') {
4848
return (

0 commit comments

Comments
 (0)
Please sign in to comment.