From 43948b5e14864a77e963f4e6eb9ce708f9b082d8 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Mon, 16 Sep 2024 10:56:07 -0400 Subject: [PATCH] style: height transition for count cards --- src/js/components/Overview/Counts.tsx | 12 ++++++++++-- src/js/constants/overviewConstants.ts | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/js/components/Overview/Counts.tsx b/src/js/components/Overview/Counts.tsx index 8fd0c037..8cdb65e2 100644 --- a/src/js/components/Overview/Counts.tsx +++ b/src/js/components/Overview/Counts.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { type CSSProperties } from 'react'; import { Typography, Card, Space, Statistic } from 'antd'; import { TeamOutlined } from '@ant-design/icons'; import { BiDna } from 'react-icons/bi'; @@ -7,6 +7,14 @@ import ExpSvg from '../Util/ExpSvg'; import { COUNTS_FILL, BOX_SHADOW } from '@/constants/overviewConstants'; import { useAppSelector, useTranslationDefault } from '@/hooks'; +const styles: Record = { + countCard: { + ...BOX_SHADOW, + minWidth: 150, + transition: 'height 0.5s ease-in-out', + }, +}; + const Counts = () => { const td = useTranslationDefault(); @@ -35,7 +43,7 @@ const Counts = () => { {td('Counts')} {data.map(({ title, icon, count }, i) => ( - +