From 98e33b77808e3d28a4c5e74c13c1338364bc78cd Mon Sep 17 00:00:00 2001 From: Ran Byron Date: Sun, 1 Sep 2019 16:59:11 +0300 Subject: [PATCH] Fix widget bottom element alignment (#4110) --- client/app/components/dashboards/widget.html | 32 +++++---- client/app/components/dashboards/widget.less | 20 ++++-- .../queries/visualization-embed.html | 65 +++++++++---------- 3 files changed, 65 insertions(+), 52 deletions(-) diff --git a/client/app/components/dashboards/widget.html b/client/app/components/dashboards/widget.html index 5154b4a308..987909589e 100644 --- a/client/app/components/dashboards/widget.html +++ b/client/app/components/dashboards/widget.html @@ -64,22 +64,26 @@ -
- - - - - - - - - {{$ctrl.widget.getQueryResult().getUpdatedAt() | dateTime}} +
+ + + + + + + + + + {{$ctrl.widget.getQueryResult().getUpdatedAt() | dateTime}} + - - + + + +
diff --git a/client/app/components/dashboards/widget.less b/client/app/components/dashboards/widget.less index 9bff185bb2..d3e04b7520 100644 --- a/client/app/components/dashboards/widget.less +++ b/client/app/components/dashboards/widget.less @@ -200,10 +200,6 @@ visualization-name { } } -.refresh-button { - margin-left: -6px; -} - .tile { .widget-menu-regular, .btn__refresh { opacity: 0 !important; @@ -249,7 +245,21 @@ visualization-name { .tile__bottom-control { padding: 10px 15px; - line-height: 2; + display: flex; + justify-content: space-between; + align-items: center; + + .btn-transparent { + &:first-child { + margin-left: -10px; + } + + &:last-child { + margin-right: -10px; + } + } + + a { color: fade(@redash-black, 65%); diff --git a/client/app/components/queries/visualization-embed.html b/client/app/components/queries/visualization-embed.html index 4a33cdc65f..df8fb8c8c3 100644 --- a/client/app/components/queries/visualization-embed.html +++ b/client/app/components/queries/visualization-embed.html @@ -24,40 +24,39 @@

-
-
-
- - - - - - {{$ctrl.queryResult.getUpdatedAt() | dateTime}} UTC -
-
- - - +
+ + + + + + + {{$ctrl.queryResult.getUpdatedAt() | dateTime}} UTC + + + + + + -
- - -
+
+ +
-
+