diff --git a/public/css/components.css b/public/css/components.css index c2e9efe..2d8b8a8 100644 --- a/public/css/components.css +++ b/public/css/components.css @@ -108,13 +108,4 @@ main { grid-template-rows: 60% 40%; height: 100%; } - - #spielanleitung { - font-size: 5em; - } - - #modal_header { - font-size: 3em; - text-align: center; - } } \ No newline at end of file diff --git a/public/css/header.css b/public/css/header.css index e746474..e034e2e 100644 --- a/public/css/header.css +++ b/public/css/header.css @@ -47,12 +47,11 @@ header { @media only screen and (max-width: 980px) { header { - height: 5em; - + height: 3em; } .title { - font-size: 3em; + font-size: 2em; } .build { diff --git a/public/css/index.css b/public/css/index.css index 0f9cc24..2a6dae7 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -52,23 +52,4 @@ #login button { background-color: #0062ff; color: #ffffff; -} - -@media only screen and (max-width: 980px) { - - #login { - align-items: flex-start; - } - - #login label { - font-size: 2.5em; - - } - - #login input, #login button { - height: 4.0em; - font-size: 2.5em; - - } - } \ No newline at end of file diff --git a/public/js/index.js b/public/js/index.js index 91b2f58..d4b3c48 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -47,10 +47,12 @@ document.getElementById('ok').addEventListener('click', function () { }); socket.on('error', function (data) { - document.getElementById('login').style.display = 'flex'; - document.getElementById('game').style.display = 'none'; - document.getElementById('chat').style.display = 'none'; - document.getElementById('error').innerText = data; + if (data === 'Game started already or room has too many members') { + document.getElementById('login').style.display = 'flex'; + document.getElementById('game').style.display = 'none'; + document.getElementById('chat').style.display = 'none'; + document.getElementById('error').innerText = data; + } }); socket.on('new message', function (data) {