From 35affd72db5f8ff8289ea8b4576acd8af3c93aa1 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 8 Dec 2021 16:56:22 -0500 Subject: [PATCH] fix: nodebb/nodebb-theme-community#19, maintain cover offset in LESS --- less/account.less | 2 +- public/persona.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/less/account.less b/less/account.less index e140a17..e2411a0 100644 --- a/less/account.less +++ b/less/account.less @@ -32,7 +32,7 @@ margin-bottom: 1em; background-origin: content-box; width: 100%; - top: 50px; + top: calc(var(--panel-offset) + @navbar-height); position: absolute; left: auto; right: 0px; diff --git a/public/persona.js b/public/persona.js index 87bb030..f9894ce 100644 --- a/public/persona.js +++ b/public/persona.js @@ -259,7 +259,6 @@ $(document).ready(function () { if (chatsSlideout) { chatsSlideout.close(); } - $('.account .cover').css('top', $('[component="navbar"]').height()); }); navSlideout