This commit is contained in:
tianshujie
2022-09-30 10:48:00 +08:00
parent c3154e0c2a
commit 9d7debfff9
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -31,3 +31,4 @@ ol, ul {padding-left: 20px;}
#mainMenu .page-title {display: flex;}
#mainMenu .btn-toolbar .page-title .label {top: 9px; margin-right: 10px; height: 16px;}
#mainMenu .btn-toolbar .page-title .text {max-width: 434px; overflow: hidden; white-space:nowrap; margin-right: 6px;}
#actionsBox a:last-of-type + .divider{display: none;}
+2
View File
@@ -44,6 +44,8 @@ function loadURL(url, type)
$(function()
{
$('#actionsBox a').first().prevAll('.divider').hide();
/* Recalculate the maximum width of the title. */
var maxWidth = $('#mainMenu').width() - $('#actionsBox').width() - $('#mainMenu .btn-toolbar .page-title .label-info').width() - 177;
$('#mainMenu .btn-toolbar .page-title .text').css('max-width', maxWidth.toString() + 'px');