From 9f8ee7a126e3dd48d6df6e721ac41188f58c00d0 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 7 Dec 2018 19:31:11 -0800 Subject: [PATCH] Performance: Get rid of extra fixed element when it's not showing anything. --- src/css/style.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/css/style.css b/src/css/style.css index e1fbb2bfa..935f73bdd 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -440,6 +440,9 @@ audio.controls-added { left: 0; visibility: visible; } +#notifications:empty { + display: none; +} :root.fixed.top-header:not(.gallery-open) #header-bar #notifications, :root.fixed.top-header #header-bar.autohide #notifications { position: absolute;