mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Top bar: Force page title to stay on 1 line
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user