Skip to content

Commit 75e086e

Browse files
authored
Merge pull request #4096 from IntersectMBO/issue_4072v3
Fix/Issue 4094 - Problem with cuting of DrepCard
2 parents 813e018 + eebe192 commit 75e086e

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

govtool/frontend/src/pages/DRepDirectoryContent.tsx

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,19 @@ export const DRepDirectoryContent: FC<DRepDirectoryContentProps> = ({
150150
currentDelegation?.dRepView ===
151151
AutomatedVotingOptionCurrentDelegation.drep_always_no_confidence);
152152

153-
const scaleWrapSx = {
154-
width: "100%",
155-
transform: { xs: "scale(0.90)", sm: "scale(0.90)", md: "none" },
156-
transformOrigin: { xs: "top left", sm: "top left", md: "initial" },
157-
ml: { xs: 0.25, sm: 0.25, md: 0 },
158-
} as const;
153+
const scaleWrapSx = isConnected
154+
? ({
155+
width: "100%",
156+
transform: { xs: "scale(0.9)", sm: "scale(0.9)", md: "none" },
157+
transformOrigin: { xs: "top center", sm: "top center", md: "initial" },
158+
ml: { xs: 0.25, sm: 0.25, md: 0 },
159+
} as const)
160+
: ({
161+
width: "100%",
162+
transform: { xs: "scale(0.9)", sm: "scale(0.9)", md: "none" },
163+
transformOrigin: { xs: "top left", sm: "top left", md: "initial" },
164+
ml: { xs: 0.25, sm: 0.25, md: 0 },
165+
} as const);
159166

160167
return (
161168
<Box
@@ -313,10 +320,10 @@ export const DRepDirectoryContent: FC<DRepDirectoryContentProps> = ({
313320
<Box
314321
sx={{
315322
width: "100%",
316-
transform: { xs: "scale(0.90)", sm: "scale(0.90)", md: "none" },
323+
transform: { xs: "scale(0.85)", sm: "scale(0.85)", md: "none" },
317324
transformOrigin: {
318-
xs: "top right",
319-
sm: "top right",
325+
xs: "top rigth",
326+
sm: "top rigth",
320327
md: "initial",
321328
},
322329
}}

0 commit comments

Comments
 (0)