Top bar: Force page title to stay on 1 line

This commit is contained in:
Molkobain
2021-09-01 14:56:21 +02:00
parent 78eda6a2fc
commit fea3c719af
2 changed files with 5 additions and 1 deletions

View File

@@ -543,7 +543,7 @@ EOF
if ($bFromDasboardPage) { if ($bFromDasboardPage) {
$sTitleForHTML = utils::HtmlEntities(Dict::S($this->sTitle)); $sTitleForHTML = utils::HtmlEntities(Dict::S($this->sTitle));
$sHtml = "<div class=\"ibo-top-bar--toolbar-dashboard-title\">{$sTitleForHTML}</div>"; $sHtml = "<div class=\"ibo-top-bar--toolbar-dashboard-title\" title=\"{$sTitleForHTML}\">{$sTitleForHTML}</div>";
if ($oPage instanceof iTopWebPage) { if ($oPage instanceof iTopWebPage) {
$oTopBar = $oPage->GetTopBarLayout(); $oTopBar = $oPage->GetTopBarLayout();
$oToolbar = ToolbarUIBlockFactory::MakeStandard(); $oToolbar = ToolbarUIBlockFactory::MakeStandard();

View File

@@ -26,6 +26,8 @@ $ibo-top-bar--elements-spacing: 32px !default;
$ibo-top-bar--quick-actions--margin-right: $ibo-top-bar--elements-spacing !default; $ibo-top-bar--quick-actions--margin-right: $ibo-top-bar--elements-spacing !default;
$ibo-top-bar--toolbar-dashboard-title--max-width: 350px !default;
/* CSS variables (can be changed directly from the browser) */ /* CSS variables (can be changed directly from the browser) */
:root{ :root{
--ibo-top-bar--height: #{$ibo-top-bar--height}; --ibo-top-bar--height: #{$ibo-top-bar--height};
@@ -65,6 +67,8 @@ $ibo-top-bar--quick-actions--margin-right: $ibo-top-bar--elements-spacing !defau
.ibo-top-bar--toolbar-dashboard-title { .ibo-top-bar--toolbar-dashboard-title {
@extend %ibo-font-size-250; @extend %ibo-font-size-250;
@extend %ibo-text-truncated-with-ellipsis;
max-width: $ibo-top-bar--toolbar-dashboard-title--max-width;
} }
.ibo-top-bar--toolbar-dashboard-menu-toggler { .ibo-top-bar--toolbar-dashboard-menu-toggler {