From 36c788906ec821f088a9dde63e370b6148c8072d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 10 May 2021 13:45:52 +0200 Subject: [PATCH] Load the page logo immediately --- com.woltlab.wcf/templates/pageHeaderLogo.tpl | 7 +++++-- wcfsetup/install/files/style/layout/pageHeader.scss | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/com.woltlab.wcf/templates/pageHeaderLogo.tpl b/com.woltlab.wcf/templates/pageHeaderLogo.tpl index 5a210b5ff0..5b4253509d 100644 --- a/com.woltlab.wcf/templates/pageHeaderLogo.tpl +++ b/com.woltlab.wcf/templates/pageHeaderLogo.tpl @@ -2,8 +2,11 @@ {if MODULE_WCF_AD && $__disableAds|empty}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.logo')}{/if} - - + getStyleHandler()->getStyle()->getVariable('pageLogoHeight')} height="{@$__wcf->getStyleHandler()->getStyle()->getVariable('pageLogoHeight')}"{/if}{* + *}{if $__wcf->getStyleHandler()->getStyle()->getVariable('pageLogoWidth')} width="{@$__wcf->getStyleHandler()->getStyle()->getVariable('pageLogoWidth')}"{/if}{* + *} loading="eager"> + {event name='headerLogo'} diff --git a/wcfsetup/install/files/style/layout/pageHeader.scss b/wcfsetup/install/files/style/layout/pageHeader.scss index cfaa43c2a8..df7e323484 100644 --- a/wcfsetup/install/files/style/layout/pageHeader.scss +++ b/wcfsetup/install/files/style/layout/pageHeader.scss @@ -304,6 +304,7 @@ flex: 1 1 auto; .pageHeaderLogoLarge { + height: auto; max-width: 100%; } -- 2.20.1