Skip to content

Commit c2badb4

Browse files
committed
Minor tweaks
1 parent 1d0d2dc commit c2badb4

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ require(["vs/editor/editor.main"], function () {
302302
.set('result', result)
303303
.set('error', '')
304304
.set('esbuildMs', duration.toString() + 'ms to compile')
305-
.set('esbuildBytes', (codeBytes / 1024).toFixed(2) + ' KB to download');
305+
.set('esbuildBytes', (codeBytes / 1024).toFixed(2) + ' KB asset');
306306
})
307307
.catch((err) => {
308308
return new Map().set('error', 'Error ' + err.message);
@@ -353,7 +353,7 @@ require(["vs/editor/editor.main"], function () {
353353
<div class="flex">
354354
<output id=result class="block text-xs">
355355
<div class="text-red-500"><slot name=error></slot></div>
356-
<div>esbuild: <slot name=esbuildMs></slot>, <slot name=esbuildBytes></slot></div>
356+
<div>esbuild: <slot name=esbuildMs></slot> into a <slot name=esbuildBytes></slot></div>
357357
</output>
358358
<div id="clientResult" class="ml-auto text-xs"><slot name=reactRenderDuration></slot></div>
359359
</div>

apps/components_guide_web/lib/components_guide_web/templates/react_typescript/index.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<header style="<%= header_styles() %>">
1+
<header style="<%= header_styles(@article) %>">
22
<%= render @view_module, "_top.html" %>
33
</header>
44

apps/components_guide_web/lib/components_guide_web/views/react_typescript_view.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
defmodule ComponentsGuideWeb.ReactTypescriptView do
22
use ComponentsGuideWeb, :view
33

4-
def header_styles() do
4+
def header_styles("editor"), do: "display: none;"
5+
6+
def header_styles(_article) do
57
l = 0
68
a = -60
79
b = -90

0 commit comments

Comments
 (0)