diff --git a/ui/package.json b/ui/package.json
index a36bb09216..88530715f2 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -35,12 +35,12 @@
"angular-sanitize": "1.5.8",
"angular-storage": "0.0.15",
"angular-touch": "1.5.8",
- "angular-translate": "^2.12.1",
- "angular-translate-handler-log": "^2.12.1",
- "angular-translate-interpolation-messageformat": "^2.12.1",
- "angular-translate-loader-static-files": "^2.12.1",
- "angular-translate-storage-cookie": "^2.12.1",
- "angular-translate-storage-local": "^2.12.1",
+ "angular-translate": "2.13.1",
+ "angular-translate-handler-log": "2.13.1",
+ "angular-translate-interpolation-messageformat": "2.13.1",
+ "angular-translate-loader-static-files": "2.13.1",
+ "angular-translate-storage-cookie": "2.13.1",
+ "angular-translate-storage-local": "2.13.1",
"angular-ui-ace": "^0.2.3",
"angular-ui-router": "^0.3.1",
"angular-websocket": "^2.0.1",
diff --git a/ui/src/app/components/timewindow.directive.js b/ui/src/app/components/timewindow.directive.js
index b8e0382cbc..1642a34704 100644
--- a/ui/src/app/components/timewindow.directive.js
+++ b/ui/src/app/components/timewindow.directive.js
@@ -66,6 +66,12 @@ function Timewindow($compile, $templateCache, $filter, $mdPanel, $document, $mdM
scope.aggregation = angular.isDefined(attrs.aggregation);
+ scope.isToolbar = angular.isDefined(attrs.isToolbar);
+
+ scope.hideLabel = function() {
+ return scope.isToolbar && !$mdMedia('gt-sm');
+ }
+
var translationPending = false;
$translate.onReady(function() {
diff --git a/ui/src/app/components/timewindow.tpl.html b/ui/src/app/components/timewindow.tpl.html
index 07a02a3850..a5c04a3bcb 100644
--- a/ui/src/app/components/timewindow.tpl.html
+++ b/ui/src/app/components/timewindow.tpl.html
@@ -22,7 +22,7 @@
-
+
{{ 'timewindow.edit' | translate }}
diff --git a/ui/src/app/dashboard/aliases-device-select-button.tpl.html b/ui/src/app/dashboard/aliases-device-select-button.tpl.html
index e8679824da..4b3c86a801 100644
--- a/ui/src/app/dashboard/aliases-device-select-button.tpl.html
+++ b/ui/src/app/dashboard/aliases-device-select-button.tpl.html
@@ -23,7 +23,7 @@
devices_other
-
+
{{ 'dashboard.select-devices' | translate }}
diff --git a/ui/src/app/dashboard/aliases-device-select.directive.js b/ui/src/app/dashboard/aliases-device-select.directive.js
index 021e8bb6d3..6f0a889e7d 100644
--- a/ui/src/app/dashboard/aliases-device-select.directive.js
+++ b/ui/src/app/dashboard/aliases-device-select.directive.js
@@ -27,7 +27,7 @@ import aliasesDeviceSelectPanelTemplate from './aliases-device-select-panel.tpl.
/* eslint-disable angular/angularelement */
/*@ngInject*/
-export default function AliasesDeviceSelectDirective($compile, $templateCache, types, $mdPanel, $document, $translate) {
+export default function AliasesDeviceSelectDirective($compile, $templateCache, $mdMedia, types, $mdPanel, $document, $translate) {
var linker = function (scope, element, attrs, ngModelCtrl) {
@@ -51,7 +51,7 @@ export default function AliasesDeviceSelectDirective($compile, $templateCache, t
return;
}
var position;
- var panelHeight = 250;
+ var panelHeight = $mdMedia('min-height: 350px') ? 250 : 150;
var panelWidth = 300;
var offset = element[0].getBoundingClientRect();
var bottomY = offset.bottom - $(window).scrollTop(); //eslint-disable-line
@@ -64,7 +64,7 @@ export default function AliasesDeviceSelectDirective($compile, $templateCache, t
yPosition = $mdPanel.yPosition.BELOW;
}
if (leftX + panelWidth > $( window ).width()) { //eslint-disable-line
- xPosition = $mdPanel.xPosition.ALIGN_END;
+ xPosition = $mdPanel.xPosition.CENTER;
} else {
xPosition = $mdPanel.xPosition.ALIGN_START;
}
diff --git a/ui/src/app/dashboard/aliases-device-select.scss b/ui/src/app/dashboard/aliases-device-select.scss
index ebd7cd29ce..2b37cd9a2f 100644
--- a/ui/src/app/dashboard/aliases-device-select.scss
+++ b/ui/src/app/dashboard/aliases-device-select.scss
@@ -21,7 +21,10 @@
}
.tb-aliases-device-select-panel {
- max-height: 250px;
+ max-height: 150px;
+ @media (min-height: 350px) {
+ max-height: 250px;
+ }
min-width: 300px;
background: white;
border-radius: 4px;
diff --git a/ui/src/app/dashboard/dashboard.tpl.html b/ui/src/app/dashboard/dashboard.tpl.html
index 26063b3383..7ff8aeceee 100644
--- a/ui/src/app/dashboard/dashboard.tpl.html
+++ b/ui/src/app/dashboard/dashboard.tpl.html
@@ -49,7 +49,7 @@
-
+
-
menu