Skip to content

Commit 5e924e9

Browse files
committed
fixup! Make lack of plaintext emails explicit
1 parent c34ac5d commit 5e924e9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/emails/StorybookEmailRenderer.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,17 @@ export const StorybookEmailRenderer = (props: Props) => {
5050
}
5151
5252
.wrapper .styled {
53-
flex: 3 1 0;
53+
flex: 2 0 auto;
54+
width: 66%;
5455
padding: 20px;
5556
display: flex;
5657
flex-direction: column;
5758
align-items: center;
5859
gap: 20px;
5960
}
6061
.wrapper .plaintext {
61-
flex: 1 1 0;
62+
flex: 1 0 auto;
63+
width: 33%;
6264
font-family: monospace;
6365
border-inline-start: 1px solid #eee;
6466
padding: 20px;
@@ -68,6 +70,10 @@ export const StorybookEmailRenderer = (props: Props) => {
6870
align-items: flex-start;
6971
gap: 20px;
7072
}
73+
74+
.plaintext pre {
75+
white-space: pre-wrap;
76+
}
7177
`}</style>
7278
<section className="styled">
7379
<div className="badge">HTML</div>

0 commit comments

Comments
 (0)