Skip to content

Commit

Permalink
fix(core): increase default width of PT inline popovers (#5878)
Browse files Browse the repository at this point in the history
* fix(core): increase default width of annotation popover

* fix(core): increase default width of all inline object popovers

* fix(core): remove width prop from annotation popover
  • Loading branch information
ninaandal authored Mar 20, 2024
1 parent 1d5f3cb commit f809fe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function ObjectEditModal(props: {
onClose()
}, [onClose])

const modalWidth = schemaModalOption?.width || 1
const modalWidth = schemaModalOption?.width

if (modalType === 'popover') {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface PopoverEditDialogProps {
const POPOVER_FALLBACK_PLACEMENTS: PopoverProps['fallbackPlacements'] = ['top', 'bottom']

export function PopoverEditDialog(props: PopoverEditDialogProps) {
const {floatingBoundary, referenceBoundary, referenceElement, width = 0} = props
const {floatingBoundary, referenceBoundary, referenceElement, width = 1} = props
const [open, setOpen] = useState(false)

// This hook is here to set open after the initial render.
Expand Down

0 comments on commit f809fe3

Please sign in to comment.