From 8281505d921b57cd11ca1a03ae24b98c9fa04ea4 Mon Sep 17 00:00:00 2001 From: Miro Date: Mon, 22 Sep 2025 19:09:19 +0200 Subject: [PATCH] Fix/Issue 4094 - Problem with cuting of DrepCard --- .../src/pages/DRepDirectoryContent.tsx | 160 +++++++++--------- 1 file changed, 82 insertions(+), 78 deletions(-) diff --git a/govtool/frontend/src/pages/DRepDirectoryContent.tsx b/govtool/frontend/src/pages/DRepDirectoryContent.tsx index 4ba2aa9be..97ea2ae88 100644 --- a/govtool/frontend/src/pages/DRepDirectoryContent.tsx +++ b/govtool/frontend/src/pages/DRepDirectoryContent.tsx @@ -150,13 +150,20 @@ 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; + return ( {myDrep && !inProgressDelegation && @@ -166,26 +173,31 @@ export const DRepDirectoryContent: FC = ({ - - + + + + )} + {inProgressDelegation && inProgressDelegation !== myDRepId && inProgressDelegationDRepData && ( - - + + + + )} @@ -194,34 +206,32 @@ export const DRepDirectoryContent: FC = ({ {t("dRepDirectory.delegationOptions")} - - - + )} @@ -271,52 +281,46 @@ export const DRepDirectoryContent: FC = ({ mt={showSearchSummary ? 0 : 4} p={0} sx={{ - opacity: isPrev ? 0.5 : 1, - transition: "opacity 0.2s", flex: 1, width: "100%", maxWidth: "100%", - overflowX: "hidden", }} > {filteredDoNotListDReps?.length === 0 && } {filteredDoNotListDReps?.map((dRep) => ( - - { - setInProgressDelegationDRepData(dRep); - delegate(dRep.drepId); - }} - /> + + + + { + setInProgressDelegationDRepData(dRep); + delegate(dRep.drepId); + }} + /> + + ))} - +