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); + }} + /> + + ))} - +