File tree 1 file changed +17
-17
lines changed
lib/keila_web/templates/campaign
1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 27
27
</ div >
28
28
</ div >
29
29
30
- < div
31
- id = "mjml-editor-wrapper "
32
- phx-update = "ignore "
33
- class = "flex "
34
- x-data = "{editorExpanded: false} "
35
- x-on:x-toggle-expand-editor.document = "editorExpanded = !editorExpanded "
36
- >
37
- <%!--
30
+ < div id = "mjml-editor-wrapper " phx-update = "ignore " >
31
+ < div
32
+ class = "flex "
33
+ x-data = "{editorExpanded: false} "
34
+ x-on:x-toggle-expand-editor.document = "editorExpanded = !editorExpanded "
35
+ >
36
+ <%!--
38
37
NOTE: using width: 0 for the editor is a weird hack here because otherwise the editor kept
39
38
causing the entire page to overflow.
40
39
The width of the editor is controlled via the (inverse) width of the iframe instead.
41
40
--%>
42
- < div class = "flex-grow transition-all " style = "width: 0 " >
43
- < div id = "mjml-editor " class = "editor " > </ div >
41
+ < div class = "flex-grow transition-all " style = "width: 0 " >
42
+ < div id = "mjml-editor " class = "editor " > </ div >
43
+ </ div >
44
+ < iframe
45
+ id = "html-inline-preview "
46
+ src = "about:blank "
47
+ class = "transition-all "
48
+ x-bind:class = "editorExpanded ? 'w-0' : 'w-3/5' "
49
+ >
50
+ </ iframe >
44
51
</ div >
45
- < iframe
46
- id = "html-inline-preview "
47
- src = "about:blank "
48
- class = "transition-all "
49
- x-bind:class = "editorExpanded ? 'w-0' : 'w-3/5' "
50
- >
51
- </ iframe >
52
52
</ div >
53
53
54
54
<% f = form_for ( @ changeset , "#" ) %>
You can’t perform that action at this time.
0 commit comments