fix: logo scalling to support squarish logos (#5647)

Also improve text alignment
This commit is contained in:
Tony Murray
2017-01-28 04:13:04 -06:00
committed by Neil Lathwood
parent 6fcf28266a
commit 5d1d4cd2ed
2 changed files with 8 additions and 3 deletions

View File

@@ -1580,8 +1580,13 @@ tr.search:nth-child(odd) {
}
.navbar-brand {
padding-left: 15px !important;
padding-top: 8px !important;
padding: 8px 15px 8px 15px !important;
line-height: 32px;
}
.navbar-brand img {
height: 100%;
max-width: 170px;
}
#visualization {

View File

@@ -37,7 +37,7 @@ if (isset($config['site_style']) && ($config['site_style'] == 'dark' || $config[
<?php
if ($config['title_image']) {
echo('<a class="hidden-md hidden-sm navbar-brand" href=""><img width="170px" src="' . $config['title_image'] . '" /></a>');
echo('<a class="hidden-md hidden-sm navbar-brand" href=""><img src="' . $config['title_image'] . '" /></a>');
} else {
echo('<a class="hidden-md hidden-sm navbar-brand" href="">'.$config['project_name'].'</a>');
}