Skip to content

Commit

Permalink
fix(modal): fixed a bug that disallowed users to set the position of …
Browse files Browse the repository at this point in the history
…a modal

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
  • Loading branch information
rtraficante authored and rluders committed May 30, 2023
1 parent b472d85 commit 6c04d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ export const theme: FlowbiteTheme = {
},
},
content: {
base: 'relative h-full w-full m-auto p-4 md:h-auto',
base: 'relative h-full w-full p-4 md:h-auto',
inner: 'relative rounded-lg bg-white shadow dark:bg-gray-700 flex flex-col max-h-[90vh]',
},
body: {
Expand Down

0 comments on commit 6c04d0e

Please sign in to comment.