aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-03 20:18:52 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-03 20:18:52 -0700
commitc252efc594922430ef8b728cac898cb3a956fdb7 (patch)
treea163493ee2ad0ef4268296c3484f65bdae9b49f9 /modern/src/common
parentec814fb2315f6693d2c8c394da6997db3da15397 (diff)
downloadtrackermap-web-c252efc594922430ef8b728cac898cb3a956fdb7.tar.gz
trackermap-web-c252efc594922430ef8b728cac898cb3a956fdb7.tar.bz2
trackermap-web-c252efc594922430ef8b728cac898cb3a956fdb7.zip
Add device image
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/attributes/useDeviceAttributes.js4
-rw-r--r--modern/src/common/theme/dimensions.js3
2 files changed, 6 insertions, 1 deletions
diff --git a/modern/src/common/attributes/useDeviceAttributes.js b/modern/src/common/attributes/useDeviceAttributes.js
index f272904a..eab9b8f6 100644
--- a/modern/src/common/attributes/useDeviceAttributes.js
+++ b/modern/src/common/attributes/useDeviceAttributes.js
@@ -10,6 +10,10 @@ export default (t) => useMemo(() => ({
name: t('attributeDevicePassword'),
type: 'string',
},
+ deviceImage: {
+ name: t('attributeDeviceImage'),
+ type: 'string',
+ },
'processing.copyAttributes': {
name: t('attributeProcessingCopyAttributes'),
type: 'string',
diff --git a/modern/src/common/theme/dimensions.js b/modern/src/common/theme/dimensions.js
index 2e8d7e5d..3d014895 100644
--- a/modern/src/common/theme/dimensions.js
+++ b/modern/src/common/theme/dimensions.js
@@ -8,5 +8,6 @@ export default {
eventsDrawerWidth: '320px',
bottomBarHeight: 56,
popupMapOffset: 300,
- popupMaxWidth: 272,
+ popupMaxWidth: 288,
+ popupImageHeight: 144,
};