From 7f843f61071308e96d7fcb9ebd971b04d741c338 Mon Sep 17 00:00:00 2001 From: Vladyslav Date: Mon, 1 Jul 2019 18:21:36 +0300 Subject: [PATCH] Improve fix title (#1823) --- ui/src/app/components/dashboard.scss | 22 +++++++++++++--------- ui/src/app/components/dashboard.tpl.html | 7 ++++--- ui/src/app/components/timewindow.tpl.html | 6 +++--- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/ui/src/app/components/dashboard.scss b/ui/src/app/components/dashboard.scss index bfbb3ead4f..22c83eb2f2 100644 --- a/ui/src/app/components/dashboard.scss +++ b/ui/src/app/components/dashboard.scss @@ -24,30 +24,34 @@ div.tb-widget { transition: all .2s ease-in-out; - .tb-widget-header{ - display: flex; - align-items: start; - justify-content: space-between; - } - .tb-widget-title { - display: block; - max-height: 75px; + max-height: 60px; padding-top: 5px; padding-left: 5px; overflow: hidden; - text-overflow: ellipsis; tb-timewindow { font-size: 14px; opacity: .85; } + + .title{ + width: 100%; + overflow: hidden; + text-overflow: ellipsis; + } } .tb-widget-actions { z-index: 19; margin: 0; + &-absolute{ + position: absolute; + top: 8px; + right: 8px; + } + .md-button.md-icon-button { width: 32px; min-width: 32px; diff --git a/ui/src/app/components/dashboard.tpl.html b/ui/src/app/components/dashboard.tpl.html index 7be57240b9..9bbc131c4d 100644 --- a/ui/src/app/components/dashboard.tpl.html +++ b/ui/src/app/components/dashboard.tpl.html @@ -44,13 +44,14 @@ ng-click="vm.widgetClicked($event, widget)" tb-contextmenu="vm.openWidgetContextMenu($event, widget, $mdOpenMousepointMenu)" ng-style="vm.widgetStyle(widget)"> -
+
- {{vm.widgetTitle(widget)}} + {{vm.widgetTitle(widget)}}
-
+
- + {{ 'timewindow.edit' | translate }} @@ -28,10 +28,10 @@ {{model.displayValue}} - + {{ 'timewindow.edit' | translate }} -
\ No newline at end of file +