Skip to content

Commit

Permalink
Merge pull request #1104 from alleslabs/fix/pool-card
Browse files Browse the repository at this point in the history
fix: pool card
  • Loading branch information
evilpeach authored Aug 26, 2024
2 parents bbd350a + 29d233d commit 6e444b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Bug fixes

- [#1100](https://github.com/alleslabs/celatone-frontend/pull/1100) Fix account modules spacing
- [#1104](https://github.com/alleslabs/celatone-frontend/pull/1104) Fix pool asset card not taking full width

## v1.8.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const AssetCard = ({
<Flex
className="copier-wrapper"
direction="column"
w="full"
minH="100px"
gap={2}
p={3}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Grid, Text } from "@chakra-ui/react";
import { Flex, Grid, Text } from "@chakra-ui/react";
import type { Event } from "@cosmjs/stargate";
import type { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";

Expand Down Expand Up @@ -74,7 +74,7 @@ export const PoolSwap = ({
mb={6}
templateColumns="minmax(250px, 1fr) 24px minmax(250px, 1fr)"
>
<div>
<Flex direction="column">
<Text variant="body2" textColor="gray.500" fontWeight={500}>
From
</Text>
Expand All @@ -84,9 +84,9 @@ export const PoolSwap = ({
assetInfo={assetInfos?.[inAsset.denom]}
ampCopierSection={ampCopierSection}
/>
</div>
</Flex>
<CustomIcon name="arrow-right" boxSize={4} color="primary.main" />
<div>
<Flex direction="column">
<Text variant="body2" textColor="gray.500" fontWeight={500}>
To
</Text>
Expand All @@ -96,7 +96,7 @@ export const PoolSwap = ({
assetInfo={assetInfos?.[outAsset.denom]}
ampCopierSection={ampCopierSection}
/>
</div>
</Flex>
</Grid>
);
};

0 comments on commit 6e444b3

Please sign in to comment.