aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 09:59:41 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 09:59:41 +1300
commit6cc21719821eae314238d1fa17de17c9e095de47 (patch)
tree7ad5826ca0b8610f7e1296c197723af64aee6a12
parent0ea22d28252eeee1f12e38914855b34004042fcd (diff)
downloadetbsa-traccar-web-6cc21719821eae314238d1fa17de17c9e095de47.tar.gz
etbsa-traccar-web-6cc21719821eae314238d1fa17de17c9e095de47.tar.bz2
etbsa-traccar-web-6cc21719821eae314238d1fa17de17c9e095de47.zip
Small improvements to web app
-rw-r--r--web/app/view/BaseDialog.js2
-rw-r--r--web/app/view/BaseWindow.js2
-rw-r--r--web/app/view/Main.js2
-rw-r--r--web/app/view/MainMobile.js5
-rw-r--r--web/app/view/SettingsMenu.js4
-rw-r--r--web/app/view/State.js2
6 files changed, 11 insertions, 6 deletions
diff --git a/web/app/view/BaseDialog.js b/web/app/view/BaseDialog.js
index 8d83224..273b620 100644
--- a/web/app/view/BaseDialog.js
+++ b/web/app/view/BaseDialog.js
@@ -21,6 +21,6 @@ Ext.define('Traccar.view.BaseDialog', {
bodyPadding: Traccar.Style.normalPadding,
resizable: false,
modal: true,
- maxHeight: screen.height ? screen.height - Traccar.Style.normalPadding * 2 : null,
+ maxHeight: window.innerHeight ? window.innerHeight - Traccar.Style.normalPadding * 2 : null,
autoScroll: true
});
diff --git a/web/app/view/BaseWindow.js b/web/app/view/BaseWindow.js
index 689f205..cb4879f 100644
--- a/web/app/view/BaseWindow.js
+++ b/web/app/view/BaseWindow.js
@@ -24,7 +24,7 @@ Ext.define('Traccar.view.BaseWindow', {
modal: true,
initComponent: function () {
- if (screen.width < Traccar.Style.windowWidth || screen.height < Traccar.Style.windowHeight) {
+ if (window.innerWidth < Traccar.Style.windowWidth || window.innerHeight < Traccar.Style.windowHeight) {
this.maximized = true;
this.style = 'border-width: 0';
}
diff --git a/web/app/view/Main.js b/web/app/view/Main.js
index 29db829..7989adc 100644
--- a/web/app/view/Main.js
+++ b/web/app/view/Main.js
@@ -39,6 +39,8 @@ Ext.define('Traccar.view.Main', {
layout: 'border',
width: Traccar.Style.deviceWidth,
title: Strings.devicesAndState,
+ titleCollapse: true,
+ floatable: false,
defaults: {
split: true,
diff --git a/web/app/view/MainMobile.js b/web/app/view/MainMobile.js
index 0e302aa..e3e6742 100644
--- a/web/app/view/MainMobile.js
+++ b/web/app/view/MainMobile.js
@@ -50,6 +50,9 @@ Ext.define('Traccar.view.MainMobile', {
region: 'south',
xtype: 'devicesView',
title: Strings.deviceTitle,
- flex: 1
+ flex: 1,
+ collapsed: true,
+ titleCollapse: true,
+ floatable: false
}]
});
diff --git a/web/app/view/SettingsMenu.js b/web/app/view/SettingsMenu.js
index 8d40a8d..db436b3 100644
--- a/web/app/view/SettingsMenu.js
+++ b/web/app/view/SettingsMenu.js
@@ -66,13 +66,13 @@ Ext.define('Traccar.view.SettingsMenu', {
}, {
hidden: true,
text: Strings.sharedAttributeAliases,
- glyph: 'xf07e@FontAwesome',
+ glyph: 'xf02c@FontAwesome',
handler: 'onAttributeAliasesClick',
reference: 'settingsAttributeAliasesButton'
}, {
hidden: true,
text: Strings.sharedDeviceDistance,
- glyph: 'xf1b9@FontAwesome',
+ glyph: 'xf0e4@FontAwesome',
handler: 'onDeviceDistanceClick',
reference: 'settingsDeviceDistanceButton'
}, {
diff --git a/web/app/view/State.js b/web/app/view/State.js
index 5dbe035..67cd075 100644
--- a/web/app/view/State.js
+++ b/web/app/view/State.js
@@ -39,7 +39,7 @@ Ext.define('Traccar.view.State', {
disabled: true,
handler: 'onAliasEditClick',
reference: 'aliasEditButton',
- glyph: 'xf07e@FontAwesome',
+ glyph: 'xf02b@FontAwesome',
tooltip: Strings.sharedEdit,
tooltipType: 'title'
}]