From 2cecd0d6f4fe82b82278f5645496a84e7d583ce0 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 20 Feb 2024 21:08:46 +0100 Subject: [PATCH] move the logo inside #nextcloud element (fix #278 #239) [NC26] --- templates/js/script.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/js/script.php b/templates/js/script.php index b67c9b2..77fcc95 100644 --- a/templates/js/script.php +++ b/templates/js/script.php @@ -24,6 +24,7 @@ if ($_['always-displayed']) { const body = document.querySelector('body') const html = document.querySelector('html') const nextcloud = document.querySelector('#nextcloud') + const logo = document.querySelector('.header-left .logo') const isTouchDevice = window.matchMedia("(pointer: coarse)").matches @@ -170,6 +171,10 @@ if ($_['always-displayed']) { if (nextcloud) { + if (logo && logo.parentNode !== nextcloud) { + nextcloud.appendChild(logo) + } + nextcloud.parentNode.insertBefore(sideMenuOpener, nextcloud)