From b885ce8ca0c048700f95f7f2164b175441d62d90 Mon Sep 17 00:00:00 2001 From: perro Date: Mon, 20 Mar 2023 16:11:27 -0700 Subject: [PATCH 1/2] =?UTF-8?q?Regeneraci=C3=B3n=20de=20statics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/static/css/main.css | 29 +++++++++++++++++++++-------- source/static/js/player.js | 13 ++++++++++--- 2 files changed, 31 insertions(+), 11 deletions(-) diff --git a/source/static/css/main.css b/source/static/css/main.css index ca42f6d..7fe590b 100644 --- a/source/static/css/main.css +++ b/source/static/css/main.css @@ -23,6 +23,10 @@ width: 100%; } +.navbar-burger { + margin-left: 0; +} + /* Cada flecha en los títulos de secciones */ .arrows { font-size: 1.5rem; @@ -301,11 +305,8 @@ section#notice a { /* SEARCH */ #search-form { - width: calc(100% - 7em); -} - -.search-div { - margin-top: .5em; + width: 80vw; + margin: auto auto auto 3rem; } .search-div > * { @@ -314,12 +315,24 @@ section#notice a { .search-div input { width: calc(100% - 4.1rem); - font-size: 1.25rem; + vertical-align: text-top; } .search-div button { - width: 3.1rem; - height: 3.1rem; + width: 2.9rem; + height: 2.9rem; +} + +/* LOGIN / LOGOUT */ + +#login-form { + width: 16rem; + margin: auto; + text-align: center; +} + +#login-form > * { + margin-top: .5rem; } /* ICONS; cfr: https://css.gg */ diff --git a/source/static/js/player.js b/source/static/js/player.js index 36dd692..55dcc5a 100644 --- a/source/static/js/player.js +++ b/source/static/js/player.js @@ -1,9 +1,16 @@ // Deshabilita scroll con la tecla de espacio // Esto es para que en 'player' quede habilitado para reproducción window.addEventListener('keydown', (e) => { - if (e.keyCode === 32 && e.target === document.body) { - e.preventDefault(); - } + if (e.keyCode === 32) { + if (e.target === document.body) { + e.preventDefault(); + } + // Por alguna razón la tecla rápida 'espacio' no funciona en toggle como + // la tecla rápida 'k', así que se fuerza para el mismo comportamiento + window.dispatchEvent(new KeyboardEvent('keydown', { + 'key': 'k' + })); + } }); // Añade un aviso From 1f7f66d5e667b1cc5353241581603d5d0651e0ef Mon Sep 17 00:00:00 2001 From: el Mau Date: Mon, 20 Mar 2023 19:15:46 -0600 Subject: [PATCH 2/2] Remove public in Telegram --- source/main/admin.py | 1 - 1 file changed, 1 deletion(-) diff --git a/source/main/admin.py b/source/main/admin.py index e447f68..b2e7ad1 100644 --- a/source/main/admin.py +++ b/source/main/admin.py @@ -119,7 +119,6 @@ País: {', '.join(obj.countries.values_list('name', flat=True))} Año: {obj.year} """ self._public_mastodon(message, obj.cartel) - self._public_telegram(message, obj.cartel.url) return