diff --git a/public/css/base.css b/public/css/base.css index 356b8453..8514e4ec 100644 --- a/public/css/base.css +++ b/public/css/base.css @@ -452,7 +452,7 @@ h1 a { } .media > .name > a { - text-align: justify; + /*text-align:justify;*/ background: none; color: #fff; text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.85); @@ -466,13 +466,7 @@ h1 a { .manga .name { text-align: center; width: 100%; - padding: 0.5em 0; -} - -.anime .name > a { - text-align: center; - width: 100%; - padding: 0.5em 1em; + padding: 0.5em 0.25em; } .anime .media_type, diff --git a/public/css/base.myth.css b/public/css/base.myth.css index 95dc85b9..39522d4f 100644 --- a/public/css/base.myth.css +++ b/public/css/base.myth.css @@ -333,7 +333,7 @@ a:hover, a:active { } .media > .name > a { - text-align:justify; + /*text-align:justify;*/ background:none; color:#fff; text-shadow: var(--shadow); @@ -347,15 +347,9 @@ a:hover, a:active { .anime .name, .manga .name { text-align:center; width:100%; - padding:0.5em 0; + padding:0.5em 0.25em; } - .anime .name > a { - text-align:center; - width:100%; - padding:0.5em 1em; - } - .anime .media_type, .anime .airing_status, .anime .user_rating, diff --git a/public/js/base/AnimeClient.js b/public/js/base/AnimeClient.js index 51d84158..815976e2 100644 --- a/public/js/base/AnimeClient.js +++ b/public/js/base/AnimeClient.js @@ -68,13 +68,12 @@ var AnimeClient = (function(w) { `; - let sel = AnimeClient.$('.message')[0]; - if (sel !== undefined) { - sel.innerHTML = template; - sel.removeAttribute('hidden'); - } else { - _.$('header')[0].insertAdjacentHTML('beforeend', template); + let sel = AnimeClient.$('.message'); + if (sel[0] !== undefined) { + sel[0].remove(); } + + _.$('header')[0].insertAdjacentHTML('beforeend', template); }, /** * Finds the closest parent element matching the passed selector