From 8a4ebd48ef6698a058b9855558782b04f43eb85e Mon Sep 17 00:00:00 2001 From: Konstantinos Triantafyllou Date: Mon, 16 Dec 2019 15:47:10 +0000 Subject: [PATCH] [Monitor Dashboard | Trunk]: Reordering enabled always, but add on hover shadow. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@57895 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/topic/indicators.component.html | 8 +++----- src/app/topic/indicators.component.ts | 20 ++------------------ src/assets/theme-assets/dashboard-custom.css | 9 +++++++++ 3 files changed, 14 insertions(+), 23 deletions(-) diff --git a/src/app/topic/indicators.component.html b/src/app/topic/indicators.component.html index 7badbc9..6065f99 100644 --- a/src/app/topic/indicators.component.html +++ b/src/app/topic/indicators.component.html @@ -58,8 +58,7 @@
+ [class.uk-width-1-1@m]="!grid || indicator.width === 'large'">
@@ -123,8 +122,7 @@
+ [class.uk-width-1-1@m]="!grid || indicator.width === 'large'">
@@ -235,7 +233,7 @@ + [okDisabled]="indicatorFb && (indicatorFb.invalid || indicatorFb.pristine)">
{ - this.chartReorder = false; - })); - this.subscriptions.push(UIkit.util.on(document, 'stop', '#number', (): void => { - this.numberReorder = false; - })); } } @@ -163,14 +155,6 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV this.filters.value.privacy); } - onLongPress(type = 'chart') { - if(type === 'number') { - this.numberReorder = true; - } else { - this.chartReorder = true; - } - } - onChartTypeChange(value) { this.displayCharts = this.filterChartType(this.charts, value); } @@ -245,11 +229,11 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV } get canNumbersReorder(): boolean { - return this.numberReorder && this.displayNumbers.length === this.numbers.length && this.grid; + return this.displayNumbers.length === this.numbers.length && this.grid; } get canChartsReorder(): boolean { - return this.chartReorder && this.displayCharts.length === this.charts.length && this.grid; + return this.displayCharts.length === this.charts.length && this.grid; } get canEdit() { diff --git a/src/assets/theme-assets/dashboard-custom.css b/src/assets/theme-assets/dashboard-custom.css index 3f5d7d3..3698e63 100644 --- a/src/assets/theme-assets/dashboard-custom.css +++ b/src/assets/theme-assets/dashboard-custom.css @@ -183,6 +183,15 @@ body.dashboard { cursor: move; } +.dashboard .uk-sortable-drag .md-card.md-card-hover { + -webkit-box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23); + box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23); +} + +.dashboard .uk-sortable-drag { + overflow: unset !important; +} + .uk-drag .dashboard .disable-sortable { pointer-events: none; }