From 12ed7dfb579c2d49a1932de064539b7c2805a037 Mon Sep 17 00:00:00 2001 From: jcardus Date: Sat, 29 Jul 2023 19:24:27 +0100 Subject: use theme --- modern/src/common/components/StatusCard.js | 2 +- modern/src/common/theme/dimensions.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'modern/src') 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', }; -- cgit v1.2.3