From 7384aab2f45f9e1d2fd111cbbe51cd46e5614fde Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Tue, 14 Jun 2022 15:52:59 +0200 Subject: [PATCH] [BS5] fix minor issues --- data/web/css/build/013-mailcow.css | 11 +++++++++- data/web/inc/prerequisites.inc.php | 2 +- data/web/js/site/debug.js | 34 +++++++++++++++--------------- data/web/templates/base.twig | 12 +++++------ 4 files changed, 34 insertions(+), 25 deletions(-) diff --git a/data/web/css/build/013-mailcow.css b/data/web/css/build/013-mailcow.css index ef4c92f7..77556829 100644 --- a/data/web/css/build/013-mailcow.css +++ b/data/web/css/build/013-mailcow.css @@ -63,6 +63,12 @@ .navbar-nav { margin: 0; } +.navbar-nav .nav-link { + height: 44px; + display: flex; + align-items: center; + margin: 0 10px; +} .navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse { max-height: 1000px @@ -169,6 +175,9 @@ legend { .bootstrap-select.btn-group .no-results { display: none; } +.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary { + color: rgb(197, 197, 197) !important; +} .haveibeenpwned { cursor: pointer; -webkit-user-select: none; @@ -214,7 +223,7 @@ legend { .btn-input-missing:active:hover, .btn-input-missing:active:focus { color: #000 !important; - background-color: #ff4136; + background-color: rgba(255, 65, 54, 0.2); border-color: #ff291c; } .navbar-nav > li { diff --git a/data/web/inc/prerequisites.inc.php b/data/web/inc/prerequisites.inc.php index 083ee5d8..20cb742c 100644 --- a/data/web/inc/prerequisites.inc.php +++ b/data/web/inc/prerequisites.inc.php @@ -254,7 +254,7 @@ $css_dir = array_diff(scandir('/web/css/build'), array('..', '.')); $UI_TEXTS = customize('get', 'ui_texts'); $UI_THEME = "lumen"; // TODO: customize('get', 'ui_theme'); // minify bootstrap theme -if (file_exists('/web/css/themes'.$UI_THEME.'-bootstrap.css')) +if (file_exists('/web/css/themes/'.$UI_THEME.'-bootstrap.css')) $css_minifier->add('/web/css/themes/'.$UI_THEME.'-bootstrap.css'); else $css_minifier->add('/web/css/themes/lumen-bootstrap.css'); diff --git a/data/web/js/site/debug.js b/data/web/js/site/debug.js index a8927198..e375331e 100644 --- a/data/web/js/site/debug.js +++ b/data/web/js/site/debug.js @@ -678,13 +678,13 @@ jQuery(function($){ "value": scan_time }; if (item.action === 'clean' || item.action === 'no action') { - item.action = "
" + item.action + "
"; + item.action = "
" + item.action + "
"; } else if (item.action === 'rewrite subject' || item.action === 'add header' || item.action === 'probable spam') { - item.action = "
" + item.action + "
"; + item.action = "
" + item.action + "
"; } else if (item.action === 'spam' || item.action === 'reject') { - item.action = "
" + item.action + "
"; + item.action = "
" + item.action + "
"; } else { - item.action = "
" + item.action + "
"; + item.action = "
" + item.action + "
"; } var score_content; if (item.score < item.required_score) { @@ -711,13 +711,13 @@ jQuery(function($){ } item.ua = '' + item.ua + ''; if (item.service == "activesync") { - item.service = 'ActiveSync'; + item.service = 'ActiveSync'; } else if (item.service == "imap") { - item.service = 'IMAP, SMTP, Cal-/CardDAV'; + item.service = 'IMAP, SMTP, Cal-/CardDAV'; } else { - item.service = '' + escapeHtml(item.service) + ''; + item.service = '' + escapeHtml(item.service) + ''; } }); } else if (table == 'watchdog') { @@ -725,13 +725,13 @@ jQuery(function($){ if (item.message == null) { item.message = 'Health level: ' + item.lvl + '% (' + item.hpnow + '/' + item.hptotal + ')'; if (item.hpdiff < 0) { - item.trend = ' ' + item.hpdiff + ''; + item.trend = ' ' + item.hpdiff + ''; } else if (item.hpdiff == 0) { - item.trend = ' ' + item.hpdiff + ''; + item.trend = ' ' + item.hpdiff + ''; } else { - item.trend = ' ' + item.hpdiff + ''; + item.trend = ' ' + item.hpdiff + ''; } } else { @@ -745,13 +745,13 @@ jQuery(function($){ item.user = escapeHtml(item.user); item.call = escapeHtml(item.call); item.task = '' + item.task + ''; - item.type = '' + item.type + ''; + item.type = '' + item.type + ''; }); } else if (table == 'sasl_log_table') { $.each(data, function (i, item) { if (item === null) { return true; } item.username = escapeHtml(item.username); - item.service = '
' + item.service.toUpperCase() + '
'; + item.service = '
' + item.service.toUpperCase() + '
'; }); } else if (table == 'general_syslog') { $.each(data, function (i, item) { @@ -770,20 +770,20 @@ jQuery(function($){ var warning_class = ["warning", "warn"]; var info_class = ["notice", "info", "debug"]; if (jQuery.inArray(item.priority, danger_class) !== -1) { - item.priority = '' + item.priority + ''; + item.priority = '' + item.priority + ''; } else if (jQuery.inArray(item.priority, warning_class) !== -1) { - item.priority = '' + item.priority + ''; + item.priority = '' + item.priority + ''; } else if (jQuery.inArray(item.priority, info_class) !== -1) { - item.priority = '' + item.priority + ''; + item.priority = '' + item.priority + ''; } }); } else if (table == 'apilog') { $.each(data, function (i, item) { if (item === null) { return true; } if (item.method == 'GET') { - item.method = '' + item.method + ''; + item.method = '' + item.method + ''; } else if (item.method == 'POST') { - item.method = '' + item.method + ''; + item.method = '' + item.method + ''; } item.data = escapeHtml(item.data); }); diff --git a/data/web/templates/base.twig b/data/web/templates/base.twig index 76b46e4c..1f26df1a 100644 --- a/data/web/templates/base.twig +++ b/data/web/templates/base.twig @@ -15,7 +15,7 @@
{% block navbar %} -