Skip to content

Commit

Permalink
fix: Add modal max width on wide screens (#3674)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvin-codecov authored Jan 29, 2025
1 parent b53522f commit 0647710
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import ReactModal from 'react-modal'
import BaseModal from './BaseModal'

const modalSizes = Object.freeze({
medium: 'w-11/12 md:w-3/4 xl:w-1/2',
small: 'w-3/4 md:w-2/4 xl:w-2/4 2xl:w-1/4',
medium: 'w-11/12 md:w-3/4 xl:w-1/2 4xl:w-[1000px]',
small: 'w-3/4 md:w-2/4 xl:w-2/4 2xl:w-1/4 3xl:w-[448px]',
})

export interface ModalProps {
Expand Down
2 changes: 2 additions & 0 deletions tailwind.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ const config = {
},
},
screens: {
'3xl': '1792px',
'4xl': '2048px',
print: { raw: 'print' },
},
backgroundImage: {
Expand Down

0 comments on commit 0647710

Please sign in to comment.