Skip to content

Commit b739d25

Browse files
authored
Merge pull request #1584 from easyops-cn/steve/centered-modal
fix(): fix modal fullscreen style
2 parents 4cec3eb + b60404b commit b739d25

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

‎bricks/containers/src/modal/index.tsx‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -445,15 +445,11 @@ function ModalComponent({
445445

446446
const body = useMemo(
447447
() => (
448-
<div
449-
className={classNames("modal-body", {
450-
fullscreen,
451-
})}
452-
>
453-
<slot></slot>
448+
<div className="modal-body">
449+
<slot />
454450
</div>
455451
),
456-
[fullscreen]
452+
[]
457453
);
458454

459455
const footer = useMemo(

0 commit comments

Comments
 (0)