Skip to content

Commit

Permalink
fix: Delegation tag width
Browse files Browse the repository at this point in the history
  • Loading branch information
dianasavvatina committed Feb 26, 2025
1 parent cac96cf commit 7453007
Showing 1 changed file with 24 additions and 33 deletions.
57 changes: 24 additions & 33 deletions apps/web/src/components/AccountCard/AccountBalanceDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,52 +92,43 @@ export const AccountBalanceDetails = () => {
</Flex>
)}
{delegate && (
<Flex
alignItems="center"
justifyContent="left"
gap="6px"
width="100%"
data-testid="delagated-to"
>
<Flex alignItems="center" justifyContent="left" gap="6px" data-testid="delagated-to">
<Flex
alignItems="center"
justifyContent="flex-end"
justifyContent="flex-start"
flex="0 0 107px"
gap="2px"
overflow="hidden"
background={color("greenLight")}
borderRadius="100px"
whiteSpace="nowrap"
textOverflow="ellipsis"
paddingX="7px"
paddingY="3px"
style={{
whiteSpace: "nowrap",
overflow: "hidden",
textOverflow: "ellipsis",
}}
>
<RoundStatusDot background={color("greenDark")} />
<Text color={color("green")} fontWeight="600" size="sm">
Delegation
</Text>
</Flex>
<Flex>
<Text
alignItems="center"
overflow="hidden"
width="30px"
data-testid="delegation-to"
paddingY="3px"
size="sm"
>
To:
</Text>
<AddressPill
overflow="hidden"
maxWidth="45vw"
whiteSpace="nowrap"
textOverflow="ellipsis"
address={delegate}
data-testid="current-baker"
/>
</Flex>
<Text
alignItems="center"
overflow="hidden"
width="30px"
data-testid="delegation-to"
paddingY="3px"
size="sm"
>
To:
</Text>
<AddressPill
overflow="hidden"
maxWidth="45vw"
whiteSpace="nowrap"
textOverflow="ellipsis"
address={delegate}
data-testid="current-baker"
/>
</Flex>
)}
{!spendableBalance.isEqualTo(totalBalance) && <Divider />}
Expand Down

1 comment on commit 7453007

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title Lines Statements Branches Functions
apps/desktop Coverage: 83%
83.74% (1788/2135) 79.42% (849/1069) 78.27% (454/580)
apps/web Coverage: 83%
83.74% (1788/2135) 79.42% (849/1069) 78.27% (454/580)
packages/components Coverage: 97%
97.48% (194/199) 94.87% (74/78) 89.7% (61/68)
packages/core Coverage: 82%
82.64% (219/265) 72.51% (95/131) 81.66% (49/60)
packages/crypto Coverage: 100%
100% (43/43) 90.9% (10/11) 100% (7/7)
packages/data-polling Coverage: 96%
94.66% (142/150) 87.5% (21/24) 92.85% (39/42)
packages/multisig Coverage: 98%
98.47% (129/131) 85.71% (18/21) 100% (36/36)
packages/social-auth Coverage: 95%
95.45% (21/22) 91.66% (11/12) 100% (3/3)
packages/state Coverage: 83%
83.15% (869/1045) 80% (200/250) 77.01% (315/409)
packages/tezos Coverage: 89%
88.65% (125/141) 93.02% (40/43) 87.5% (35/40)
packages/tzkt Coverage: 89%
87.32% (62/71) 87.5% (14/16) 80.48% (33/41)

Please sign in to comment.