From b84a1827788b19f0eccf869edbf17051bfc44b47 Mon Sep 17 00:00:00 2001 From: Ramirisu Date: Mon, 26 Feb 2024 18:17:04 +0800 Subject: [PATCH] Scale up text when hovering on. --- src/components/MatchCard.jsx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/components/MatchCard.jsx b/src/components/MatchCard.jsx index 1c26f57..1cbb7c5 100644 --- a/src/components/MatchCard.jsx +++ b/src/components/MatchCard.jsx @@ -36,6 +36,17 @@ const diffTextStyles = stylex.create({ }), }) +const scaleUpStyles = stylex.create({ + base: { + margin: '5px', + transition: 'transform 0.2s', + transform: { + default: 'scale(1.0)', + ':hover': 'scale(1.2)', + }, + }, +}) + const MatchCard = ({ title, data, nameTemplate, linkTemplate, fontSizeScale, borderColor, cardBodyPadding }) => { const { t } = useTranslation() const resultStyles = useThemeStore((state) => state.theme.data.result) @@ -182,7 +193,7 @@ const MatchCard = ({ title, data, nameTemplate, linkTemplate, fontSizeScale, bor > } content={}> - + {value.icon && (