aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
authorjcardus <asklocation.net@gmail.com>2023-07-29 19:24:27 +0100
committerjcardus <asklocation.net@gmail.com>2023-07-29 19:24:27 +0100
commit12ed7dfb579c2d49a1932de064539b7c2805a037 (patch)
tree6bbbabd70ce68f4a7b16b2903cdd50871b038d44 /modern/src/common
parent55be86d72bee2db736ef8dfe77a3e26c680d3e5b (diff)
downloadtrackermap-web-12ed7dfb579c2d49a1932de064539b7c2805a037.tar.gz
trackermap-web-12ed7dfb579c2d49a1932de064539b7c2805a037.tar.bz2
trackermap-web-12ed7dfb579c2d49a1932de064539b7c2805a037.zip
use theme
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/components/StatusCard.js2
-rw-r--r--modern/src/common/theme/dimensions.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/common/components/StatusCard.js b/modern/src/common/components/StatusCard.js
index 81b4049a..c389636c 100644
--- a/modern/src/common/components/StatusCard.js
+++ b/modern/src/common/components/StatusCard.js
@@ -57,7 +57,7 @@ const useStyles = makeStyles((theme) => ({
content: {
paddingTop: theme.spacing(1),
paddingBottom: theme.spacing(1),
- 'max-height': '40vh',
+ maxHeight: theme.dimensions.cardContentMaxHeight,
overflow: 'scroll',
},
negative: {
diff --git a/modern/src/common/theme/dimensions.js b/modern/src/common/theme/dimensions.js
index 3d014895..4930803a 100644
--- a/modern/src/common/theme/dimensions.js
+++ b/modern/src/common/theme/dimensions.js
@@ -10,4 +10,5 @@ export default {
popupMapOffset: 300,
popupMaxWidth: 288,
popupImageHeight: 144,
+ cardContentMaxHeight: '40vh',
};