From 8be8d63363be2913fb3d6f443e5cbf046e7bd418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Fri, 13 Dec 2024 16:19:05 +0100 Subject: [PATCH] fix: misalignment of votes on connected governance actions --- CHANGELOG.md | 1 + .../src/components/organisms/GovernanceActionDetailsCard.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9628fd1b..49f30c36c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ changes. ### Fixed - Fix mzero parsing error on fetching the /proposal/list [Issue 2446](https://github.com/IntersectMBO/govtool/issues/2446) +- Fix scaling gov action votes on lower resolutions ### Changed diff --git a/govtool/frontend/src/components/organisms/GovernanceActionDetailsCard.tsx b/govtool/frontend/src/components/organisms/GovernanceActionDetailsCard.tsx index d4ba7bfee..df326ce17 100644 --- a/govtool/frontend/src/components/organisms/GovernanceActionDetailsCard.tsx +++ b/govtool/frontend/src/components/organisms/GovernanceActionDetailsCard.tsx @@ -31,7 +31,7 @@ export const GovernanceActionDetailsCard = ({ const [isVoteSubmitted, setIsVoteSubmitted] = useState(false); const { screenWidth, isMobile } = useScreenDimension(); - const isOneColumn = (isDashboard && screenWidth < 1645) ?? isMobile; + const isOneColumn = (isDashboard && screenWidth < 1036) ?? isMobile; const { pathname, hash } = useLocation(); const govActionLinkToShare = `${window.location.protocol}//${