mirror of
https://github.com/kevinveenbirkenbach/homepage.veen.world.git
synced 2025-07-07 11:35:12 +02:00
Added logo for small screen
This commit is contained in:
parent
20b6c731b8
commit
d0f8d7d172
@ -19,6 +19,9 @@ function enterFullscreen() {
|
|||||||
setFullWidth(true);
|
setFullWidth(true);
|
||||||
updateUrlFullscreen(true);
|
updateUrlFullscreen(true);
|
||||||
|
|
||||||
|
const logo = document.getElementById('navbar_logo');
|
||||||
|
if (logo) logo.classList.remove('d-none');
|
||||||
|
|
||||||
if (typeof adjustScrollContainerHeight === 'function') adjustScrollContainerHeight();
|
if (typeof adjustScrollContainerHeight === 'function') adjustScrollContainerHeight();
|
||||||
if (typeof updateCustomScrollbar === 'function') updateCustomScrollbar();
|
if (typeof updateCustomScrollbar === 'function') updateCustomScrollbar();
|
||||||
}
|
}
|
||||||
@ -33,6 +36,9 @@ function exitFullscreen() {
|
|||||||
setFullWidth(false);
|
setFullWidth(false);
|
||||||
updateUrlFullscreen(false);
|
updateUrlFullscreen(false);
|
||||||
|
|
||||||
|
const logo = document.getElementById('navbar_logo');
|
||||||
|
if (logo) logo.classList.add('d-none');
|
||||||
|
|
||||||
if (typeof adjustScrollContainerHeight === 'function') adjustScrollContainerHeight();
|
if (typeof adjustScrollContainerHeight === 'function') adjustScrollContainerHeight();
|
||||||
if (typeof updateCustomScrollbar === 'function') updateCustomScrollbar();
|
if (typeof updateCustomScrollbar === 'function') updateCustomScrollbar();
|
||||||
if (typeof syncIframeHeight === 'function') syncIframeHeight();
|
if (typeof syncIframeHeight === 'function') syncIframeHeight();
|
||||||
|
@ -53,6 +53,19 @@
|
|||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarNav{{menu_type}}">
|
<div class="collapse navbar-collapse" id="navbarNav{{menu_type}}">
|
||||||
|
{% if menu_type == "header" %}
|
||||||
|
<a class="navbar-brand d-flex align-items-center d-none" id="navbar_logo" href="/">
|
||||||
|
<img
|
||||||
|
src="{{ platform.logo.cache }}"
|
||||||
|
alt="{{ platform.titel }}"
|
||||||
|
class="d-inline-block align-text-top"
|
||||||
|
style="height:2rem">
|
||||||
|
<div class="ms-2 d-flex flex-column">
|
||||||
|
<span class="fs-4 fw-bold mb-0">{{ platform.titel }}</span>
|
||||||
|
{# <small class="fs-7 text-muted">{{ platform.subtitel }}</small> #}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</a>
|
||||||
<ul class="navbar-nav {% if menu_type == 'header' %}ms-auto{% endif %} btn-group">
|
<ul class="navbar-nav {% if menu_type == 'header' %}ms-auto{% endif %} btn-group">
|
||||||
{% for item in navigation[menu_type].children %}
|
{% for item in navigation[menu_type].children %}
|
||||||
{% if item.url or item.onclick %}
|
{% if item.url or item.onclick %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user