Skip to content

Commit ebe8cc4

Browse files
committed
Set banner width
1 parent f6072d1 commit ebe8cc4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

resources/ecs/main.ecs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@
4343
! set attribute `id` of Tracer to `easycoder-tracer`
4444

4545
create Body
46-
if mobile
47-
set the style of Body to `width:100vw`
48-
else
49-
set the style of Body to `width:100vw;max-width:1200px;margin:0 auto`
46+
if mobile set the style of Body to `width:100vw`
47+
else set the style of Body to `width:100vw;max-width:1200px;margin:0 auto`
5048

5149
on message
5250
begin
@@ -72,7 +70,8 @@ BuildPage:
7270
set the style of Header to `margin:0 2em;text-align:center`
7371

7472
create Banner in Header
75-
if not mobile set the style of Banner to `width:50%;margin:0 auto`
73+
if mobile set the style of Banner to `width:100%`
74+
else set the style of Banner to `width:50%;margin:0 auto`
7675
set attribute `src` of Banner to `resources/img/banner.png`
7776

7877
create Rule in Body

0 commit comments

Comments
 (0)