Skip to content

Commit ae6fb0c

Browse files
peterzimonkevinansfield
authored andcommitted
Adding warning to preview
1 parent 8867ad5 commit ae6fb0c

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

ghost/admin/app/components/editor/modals/preview/email.hbs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@
8888
/>
8989
</form>
9090
</div>
91+
<div class="gh-email-preview-clip-container">
92+
{{svg-jar "email"}}
93+
<div>
94+
<div class="gh-email-preview-clip-title">Looks like this is a long post</div>
95+
<div class="gh-email-preview-clip-description">Email newsletters may get cut off in the inbox behind a “View entire message” link when they’re over 100kB. </div>
96+
<div class="gh-email-preview-clip-used">You’ve used: <span class="yellow-d1">92kB</span></div>
97+
</div>
98+
</div>
9199
<iframe
92100
class="gh-pe-iframe"
93101
title="Email preview"

ghost/admin/app/styles/layouts/preview-email.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,3 +284,38 @@ p .gh-preview-email-address {
284284
display: none
285285
}
286286
}
287+
288+
.gh-email-preview-clip-container {
289+
display: flex;
290+
background-color: var(--whitegrey-l2);
291+
border-bottom: 1px solid var(--whitegrey);
292+
padding: 20px;
293+
gap: 12px;
294+
align-items: flex-start;
295+
}
296+
297+
.gh-email-preview-clip-container svg {
298+
margin-top: 2px;
299+
width: 16px;
300+
min-width: 16px;
301+
height: auto;
302+
}
303+
304+
.gh-email-preview-clip-container svg path {
305+
fill: var(--yellow-d1);
306+
}
307+
308+
.gh-email-preview-clip-title {
309+
font-weight: 600;
310+
font-size: 1.3rem;
311+
}
312+
313+
.gh-email-preview-clip-description {
314+
font-size: 1.3rem;
315+
text-wrap: pretty;
316+
}
317+
318+
.gh-email-preview-clip-used {
319+
font-size: 1.3rem;
320+
font-weight: 600;
321+
}

0 commit comments

Comments
 (0)