From 4d050b3c93973eb02f6d6c93f8a810a823b460af Mon Sep 17 00:00:00 2001 From: Vladyslav Prykhodko Date: Fri, 1 Mar 2019 15:18:02 +0200 Subject: [PATCH] fix widget title longed --- ui/src/app/components/dashboard.scss | 14 ++- ui/src/app/components/dashboard.tpl.html | 124 ++++++++++++----------- 2 files changed, 72 insertions(+), 66 deletions(-) diff --git a/ui/src/app/components/dashboard.scss b/ui/src/app/components/dashboard.scss index afc1d5934c..bfbb3ead4f 100644 --- a/ui/src/app/components/dashboard.scss +++ b/ui/src/app/components/dashboard.scss @@ -24,12 +24,19 @@ div.tb-widget { transition: all .2s ease-in-out; - .tb-widget-title { - max-height: 60px; + .tb-widget-header{ + display: flex; + align-items: start; + justify-content: space-between; + } + .tb-widget-title { + display: block; + max-height: 75px; padding-top: 5px; padding-left: 5px; overflow: hidden; + text-overflow: ellipsis; tb-timewindow { font-size: 14px; @@ -38,9 +45,6 @@ div.tb-widget { } .tb-widget-actions { - position: absolute; - top: 8px; - right: 8px; z-index: 19; margin: 0; diff --git a/ui/src/app/components/dashboard.tpl.html b/ui/src/app/components/dashboard.tpl.html index cb45a52561..7be57240b9 100644 --- a/ui/src/app/components/dashboard.tpl.html +++ b/ui/src/app/components/dashboard.tpl.html @@ -44,66 +44,68 @@ ng-click="vm.widgetClicked($event, widget)" tb-contextmenu="vm.openWidgetContextMenu($event, widget, $mdOpenMousepointMenu)" ng-style="vm.widgetStyle(widget)"> -
-
- {{vm.widgetTitle(widget)}} - -
-
- - - {{action.displayName}} - - - - - - {{ action.name | translate }} - - - - - - - {{ 'widget.edit' | translate }} - - - - - - {{ 'widget.export' | translate }} - - - - - - {{ 'widget.remove' | translate }} - - - +
+
+
+ {{vm.widgetTitle(widget)}} + +
+
+ + + {{action.displayName}} + + + + + + {{ action.name | translate }} + + + + + + + {{ 'widget.edit' | translate }} + + + + + + {{ 'widget.export' | translate }} + + + + + + {{ 'widget.remove' | translate }} + + + +
- \ No newline at end of file +