Skip to content

Commit 2e86a44

Browse files
committed
Collapse server-rendered HTML in react editor
1 parent 8a4781d commit 2e86a44

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lib/components_guide_web/templates/react_editor/index.html.eex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ require(["vs/editor/editor.main"], function () {
399399
<div id="input" style="flex: 1;"></div>
400400
<div class="flex-1 flex flex-col">
401401
<div id="clientApp" style="flex: 1;" class="bg-white text-black"></div>
402-
<div id="htmlOutput" style="flex: 1;"></div>
402+
<details>
403+
<summary>Server-rendered HTML</summary>
404+
<div id="htmlOutput" style="flex: 1;"></div>
405+
</details>
403406
</div>
404407
</div>

lib/components_guide_web/templates/react_typescript/editor.html.eex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ require(["vs/editor/editor.main"], function () {
361361
<div id="input" style="flex: 1;"></div>
362362
<div class="flex-1 flex flex-col">
363363
<div id="clientApp" style="flex: 1;" class="bg-white text-black"></div>
364-
<div id="htmlOutput" style="flex: 1;"></div>
364+
<details>
365+
<summary>Server-rendered HTML</summary>
366+
<div id="htmlOutput" style="flex: 1;"></div>
367+
</details>
365368
</div>
366369
</div>

0 commit comments

Comments
 (0)