fixed logo height issue

This commit is contained in:
Shreesh Arora
2022-12-27 15:02:55 +05:30
parent 0eb5817f2f
commit 07159b68e8
3 changed files with 4 additions and 5 deletions

View File

@@ -144,7 +144,7 @@ class AdminThemesControllerCore extends AdminController
'fields' => array(
'PS_LOGO' => array(
'title' => $this->l('Header logo'),
'hint' => $this->l('Will appear on main page. Recommended height: 52px. Maximum height on default theme: 65px.'),
'hint' => $this->l('Will appear on header of website. Maximum height on default theme: 60px.'),
'type' => 'file',
'name' => 'PS_LOGO',
'tab' => 'logo',
@@ -153,7 +153,7 @@ class AdminThemesControllerCore extends AdminController
'PS_LOGO_MOBILE' => array(
'title' => $this->l('Header logo for mobile'),
'desc' => ((Configuration::get('PS_LOGO_MOBILE') === false) ? '<span class="light-warning">'.$this->l('Warning: No mobile logo has been defined. The header logo will be used instead.').'</span><br />' : ''),
'hint' => $this->l('Will appear on the main page of your mobile template. If left undefined, the header logo will be used.'),
'hint' => $this->l('Will appear on the header of your mobile template. If left undefined, the header logo will be used.'),
'type' => 'file',
'name' => 'PS_LOGO_MOBILE',
'tab' => 'mobile',

View File

@@ -5818,8 +5818,7 @@ header {
header .row #header_logo {
padding: 10px 0; }
header .row #header_logo img {
max-width: 120px;
max-height: 120px; }
max-height: 60px; }
header .header-top > div > div > div .header-top-menu {
display: flex;
flex-direction: row-reverse;

View File

@@ -105,7 +105,7 @@
<div class="col-xs-12">
<div id="header_logo">
<a href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{$shop_name|escape:'html':'UTF-8'}">
<img class="logo img-responsive" src="{$logo_url}" alt="{$shop_name|escape:'html':'UTF-8'}"{if isset($logo_image_width) && $logo_image_width} width="{$logo_image_width}"{/if}{if isset($logo_image_height) && $logo_image_height} height="{$logo_image_height}"{/if}/>
<img class="logo img-responsive" src="{$logo_url}" alt="{$shop_name|escape:'html':'UTF-8'}"/>
</a>
</div>
<div class="header-top-menu">