Ensure "Start from scratch" button sticks to the end of the modal

MAILPOET-5949
This commit is contained in:
Oluwaseun Olorunsola
2024-12-06 11:15:11 +01:00
committed by Oluwaseun Olorunsola
parent 52a6122e74
commit 36130c9809
2 changed files with 10 additions and 2 deletions

View File

@ -34,3 +34,11 @@
padding-left: 1rem; padding-left: 1rem;
} }
} }
.email-editor-modal-footer {
background-color: #fff;
bottom: 0;
padding: 1rem 2rem;
position: absolute;
right: 0;
}

View File

@ -103,7 +103,7 @@ export function SelectTemplateModal( {
return ( return (
<Modal <Modal
title={ __( 'Select a template', 'mailpoet' ) } title={ __( 'Start with an email preset', 'mailpoet' ) }
onRequestClose={ () => onRequestClose={ () =>
closeCallback ? closeCallback() : handleCloseWithoutSelection() closeCallback ? closeCallback() : handleCloseWithoutSelection()
} }
@ -115,7 +115,7 @@ export function SelectTemplateModal( {
handleTemplateSelection={ handleTemplateSelection } handleTemplateSelection={ handleTemplateSelection }
/> />
<Flex justify="flex-end"> <Flex className="email-editor-modal-footer" justify="flex-end">
<FlexItem> <FlexItem>
<Button <Button
variant="tertiary" variant="tertiary"