Skip to content

Commit 5200ecd

Browse files
authored
fix(modal): fixed a bug that disallowed users to set the position of a modal (#766)
The modal's position property is handled by the parent of the actual content box using flex, align items, and justify content but was being blocked by the content box's proptery of margin: auto. This fix deletes that margin: auto property so the parent can corrently handle the position of the modal correctly. Placement Attribute of the Modal Component doesn't work #760
1 parent b472d85 commit 5200ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ export const theme: FlowbiteTheme = {
543543
},
544544
},
545545
content: {
546-
base: 'relative h-full w-full m-auto p-4 md:h-auto',
546+
base: 'relative h-full w-full p-4 md:h-auto',
547547
inner: 'relative rounded-lg bg-white shadow dark:bg-gray-700 flex flex-col max-h-[90vh]',
548548
},
549549
body: {

0 commit comments

Comments
 (0)