mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: Require use of a preset dialog size; adjust dialog sizing (#2684)
This commit is contained in:
parent
0488b7b5c6
commit
3b0fb1562d
6 changed files with 7 additions and 19 deletions
|
@ -19,7 +19,7 @@ const useRefState = <T,>() => {
|
|||
export const Dialog = (props: {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
maxWidth?: number;
|
||||
small?: boolean;
|
||||
onCloseRequest(): void;
|
||||
title: React.ReactNode;
|
||||
autofocus?: boolean;
|
||||
|
@ -76,7 +76,7 @@ export const Dialog = (props: {
|
|||
<Modal
|
||||
className={clsx("Dialog", props.className)}
|
||||
labelledBy="dialog-title"
|
||||
maxWidth={props.maxWidth}
|
||||
maxWidth={props.small ? 550 : 800}
|
||||
onCloseRequest={props.onCloseRequest}
|
||||
>
|
||||
<Island padding={4} ref={setIslandNode}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue