From eebe192e1500b325f59ff0993ed7f1bbb2723e0b Mon Sep 17 00:00:00 2001 From: Miro Date: Mon, 22 Sep 2025 22:58:35 +0200 Subject: [PATCH] Fix/Issue 4094 - Problem with cuting of DrepCard --- .../src/pages/DRepDirectoryContent.tsx | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/govtool/frontend/src/pages/DRepDirectoryContent.tsx b/govtool/frontend/src/pages/DRepDirectoryContent.tsx index 97ea2ae88..e7559d247 100644 --- a/govtool/frontend/src/pages/DRepDirectoryContent.tsx +++ b/govtool/frontend/src/pages/DRepDirectoryContent.tsx @@ -150,12 +150,19 @@ export const DRepDirectoryContent: FC = ({ currentDelegation?.dRepView === AutomatedVotingOptionCurrentDelegation.drep_always_no_confidence); - const scaleWrapSx = { - width: "100%", - transform: { xs: "scale(0.90)", sm: "scale(0.90)", md: "none" }, - transformOrigin: { xs: "top left", sm: "top left", md: "initial" }, - ml: { xs: 0.25, sm: 0.25, md: 0 }, - } as const; + const scaleWrapSx = isConnected + ? ({ + width: "100%", + transform: { xs: "scale(0.9)", sm: "scale(0.9)", md: "none" }, + transformOrigin: { xs: "top center", sm: "top center", md: "initial" }, + ml: { xs: 0.25, sm: 0.25, md: 0 }, + } as const) + : ({ + width: "100%", + transform: { xs: "scale(0.9)", sm: "scale(0.9)", md: "none" }, + transformOrigin: { xs: "top left", sm: "top left", md: "initial" }, + ml: { xs: 0.25, sm: 0.25, md: 0 }, + } as const); return ( = ({