mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Added in some responsive design to the Comments modals for mobile
refs https://github.com/TryGhost/Team/issues/1703
This commit is contained in:
parent
8d41ec360b
commit
2c013b8db0
2 changed files with 5 additions and 2 deletions
|
@ -27,7 +27,7 @@ const GenericDialog = (props) => {
|
|||
leaveFrom="opacity-100"
|
||||
leaveTo="opacity-0"
|
||||
>
|
||||
<div className="fixed top-0 left-0 overflow-hidden w-screen h-screen flex pt-12 justify-center bg-gradient-to-b from-[rgba(0,0,0,0.2)] to-rgba(0,0,0,0.1) backdrop-blur-[2px]" onClick={close}>
|
||||
<div className="fixed top-0 left-0 overflow-hidden w-screen h-screen flex pt-0 sm:pt-12 justify-center bg-gradient-to-b from-[rgba(0,0,0,0.2)] to-rgba(0,0,0,0.1) backdrop-blur-[2px]" onClick={close}>
|
||||
<Transition.Child
|
||||
enter="transition duration-200 delay-150 linear"
|
||||
enterFrom="translate-y-4 opacity-0"
|
||||
|
@ -36,7 +36,7 @@ const GenericDialog = (props) => {
|
|||
leaveFrom="translate-y-0 opacity-100"
|
||||
leaveTo="translate-y-4 opacity-0"
|
||||
>
|
||||
<div className="bg-white w-[500px] p-8 rounded-xl text-center shadow-modal" onClick={stopPropagation}>
|
||||
<div className="bg-white w-screen sm:w-[500px] h-screen sm:h-auto p-8 rounded-none sm:rounded-xl text-center shadow-modal" onClick={stopPropagation}>
|
||||
{props.children}
|
||||
</div>
|
||||
</Transition.Child>
|
||||
|
|
|
@ -161,6 +161,9 @@ module.exports = {
|
|||
'0%, 100%': {transform: 'scale(1)'},
|
||||
'50%': {transform: 'scale(1.3)'}
|
||||
}
|
||||
},
|
||||
screens: {
|
||||
'sm': '481px'
|
||||
}
|
||||
},
|
||||
content: [
|
||||
|
|
Loading…
Add table
Reference in a new issue