Tweaks email editor

This commit is contained in:
Chris Anderson 2023-03-07 08:35:25 -06:00
parent 019d7f1f01
commit 97338c8cd9
4 changed files with 20 additions and 18 deletions

View file

@ -63,6 +63,7 @@
.modal.fullscreen .modal-content {
flex-grow: 1;
position: relative;
}
.modal-inner .modal-header h3 {

View file

@ -1,7 +1,6 @@
.email-editor {
height: 100vh;
background: var(--color-background);
position: fixed;
position: absolute;
display: flex;
flex-direction: column;
grid-template-rows: 60px auto auto;

View file

@ -168,20 +168,22 @@ export default function EmailEditor() {
open
onClose={() => navigate(`../campaigns/${campaign.id}/design`)}
>
<Tabs
selectedIndex={selectedIndex}
onChange={setSelectedIndex}
tabs={tabs}
append={
<Button
size="small"
variant="secondary"
onClick={() => setIsAddLocaleOpen(true)}
>
{'Add Locale'}
</Button>
}
/>
<section className="email-editor">
<Tabs
selectedIndex={selectedIndex}
onChange={setSelectedIndex}
tabs={tabs}
append={
<Button
size="small"
variant="secondary"
onClick={() => setIsAddLocaleOpen(true)}
>
{'Add Locale'}
</Button>
}
/>
</section>
</Modal>
<CreateLocaleModal
open={isAddLocaleOpen}

View file

@ -36,7 +36,7 @@
}
.image-gallery .image img {
max-width: 100%;
max-height: 100%;
width: 100%;
height: 100%;
object-fit: cover;
}