Added logo to navbar when in fullscreen

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-21 11:39:59 +02:00
parent 5f2e7ef696
commit 46b0b744ca
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
3 changed files with 10 additions and 10 deletions

View File

@ -173,6 +173,11 @@ iframe{
transition: opacity var(--anim-duration) ease-in-out;
}
#navbar_logo.visible {
opacity: 1 !important;
}
/* 1. Make sure headers and footers can collapse */
header,
footer {

View File

@ -41,14 +41,11 @@ function enterFullscreen() {
setFullWidth(true);
updateUrlFullscreen(true);
// fade in logo… (unchanged)
// Nur jetzt sichtbar machen
const logo = document.getElementById('navbar_logo');
if (logo) {
// hide the navbarlogo restore link in fullscreen
logo.classList.add('d-none');
logo.classList.add('visible');
}
// now recalc in lock-step with the CSS collapse animation
recalcWhileCollapsing();
}
@ -57,13 +54,11 @@ function exitFullscreen() {
setFullWidth(false);
updateUrlFullscreen(false);
// Jetzt wieder verstecken
const logo = document.getElementById('navbar_logo');
if (logo) {
// show the navbarlogo restore link again
logo.classList.remove('d-none');
logo.classList.remove('visible');
}
// recalc while header/footer expand back
recalcWhileCollapsing();
}

View File

@ -54,7 +54,7 @@
</button>
<div class="collapse navbar-collapse" id="navbarNav{{menu_type}}">
{% if menu_type == "header" %}
<a class="navbar-brand d-flex align-items-center d-none js-restore" id="navbar_logo" href="#">
<a class="navbar-brand align-items-center js-restore" id="navbar_logo" href="#">
<img
src="{{ url_for('static', filename=platform.logo.cache) }}"
alt="{{ platform.titel }}"