diff --git a/cmd/templates/vanilla/frontend/src/main.css b/cmd/templates/vanilla/frontend/src/main.css index 14a1ae5a..662d0632 100644 --- a/cmd/templates/vanilla/frontend/src/main.css +++ b/cmd/templates/vanilla/frontend/src/main.css @@ -11,7 +11,7 @@ body { display: block; width:100%; text-align: center; - margin-top: 3rem; + margin-top: 1rem; font-size: 2rem; } @@ -24,7 +24,7 @@ button { } .result { - margin-top: 3rem; + margin-top: 1rem; text-align: center; font-size: 2rem; } diff --git a/cmd/templates/vanilla/frontend/src/main.js b/cmd/templates/vanilla/frontend/src/main.js index 6e4a3729..609e55e4 100644 --- a/cmd/templates/vanilla/frontend/src/main.js +++ b/cmd/templates/vanilla/frontend/src/main.js @@ -36,7 +36,7 @@ function start() { mystore.set(newValue); }; - mystore.subscribe( (state) => { + mystore.subscribe( function(state) { document.getElementById('counter').innerText = state; });