move the logo inside #nextcloud element (fix #278 #239) [NC26]
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline is pending
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
Simon Vieille 2024-02-20 21:08:46 +01:00
parent 28085d9aa7
commit 2cecd0d6f4
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -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']) {
<?php endif; ?>
if (nextcloud) {
if (logo && logo.parentNode !== nextcloud) {
nextcloud.appendChild(logo)
}
<?php if ($_['opener-position'] === 'before'): ?>
nextcloud.parentNode.insertBefore(sideMenuOpener, nextcloud)
<?php else: ?>