0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Design details for offers modal (#19208)

no issues

- consistent spacing between modal and preview modal
- no action button jumping between the modals
- cleaner stats section in the edit screen
This commit is contained in:
Sodbileg Gansukh 2023-11-30 22:08:25 +08:00 committed by GitHub
parent 802bb9bc8d
commit 77e9ea987b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View file

@ -249,7 +249,7 @@ const Modal: React.FC<ModalProps> = ({
backdropClasses,
'p-4 md:p-[4vmin]'
);
paddingClasses = 'p-8';
paddingClasses = 'p-7';
headerClasses = clsx(
headerClasses,
'-inset-x-8'

View file

@ -281,7 +281,7 @@ export const PreviewModalContent: React.FC<PreviewModalProps> = ({
{sidebar &&
<div className='relative flex h-full w-full flex-col border-l border-grey-100 dark:border-grey-900 [@media(min-width:801px)]:w-auto [@media(min-width:801px)]:basis-[400px]'>
{sidebarHeader ? sidebarHeader : (
<div className='flex max-h-[74px] items-center justify-between gap-3 px-7 py-5'>
<div className='flex max-h-[82px] items-center justify-between gap-3 px-7 py-6'>
<Heading level={titleHeadingLevel}>{title}</Heading>
{sidebarButtons ? sidebarButtons : <ButtonGroup buttons={buttons} /> }
</div>

View file

@ -95,10 +95,9 @@ const Sidebar: React.FC<{
};
return (
<div className='flex grow flex-col pt-7'>
<div className='flex grow flex-col pt-2'>
<Form className=' grow'>
<section>
<h2 className='mb-4 text-lg'>Stats</h2>
<div className='flex flex-col gap-5 rounded-md border border-grey-300 p-4 pb-3.5'>
<div className='flex flex-col gap-1.5'>
<span className='text-xs font-semibold leading-none text-grey-700'>Created on</span>