Skip to content

Commit

Permalink
Merge pull request #460 from alleslabs/fix/alignment
Browse files Browse the repository at this point in the history
fix: fix icns names and contract address alignment
  • Loading branch information
evilpeach committed Aug 4, 2023
2 parents 21efc62 + 7d8a515 commit 7c2a330
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

- [#460](https://github.com/alleslabs/celatone-frontend/pull/460) Fix icns names and contract address alignment
- [#459](https://github.com/alleslabs/celatone-frontend/pull/459) Fix contract txs by using contract account id instead of contract address
- [#456](https://github.com/alleslabs/celatone-frontend/pull/456) Fix pool count chip in pool transaction table
- [#454](https://github.com/alleslabs/celatone-frontend/pull/454) Fix contract selection loading state for other folders
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/ContractSelectSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export const ContractSelectSection = observer(
maxWidth="none"
minWidth={style.contractAddrW}
wordBreak="break-all"
fixedHeight={false}
/>
) : (
<Text color="text.disabled" variant="body2">
Expand Down
1 change: 0 additions & 1 deletion src/lib/components/ExplorerLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ const LinkRender = ({
pointerEvents={hrefLink ? "auto" : "none"}
wordBreak={{ base: "break-all", md: "inherit" }}
display={{ base: "inline", md: "flex" }}
align={{ base: "start", md: "center" }}
>
{textValue}
</Text>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/PrimaryNameMark.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Tooltip } from "lib/components/Tooltip";

export const PrimaryNameMark = () => (
<Tooltip label="Primary name">
<div style={{ display: "flex" }}>
<div>
<CustomIcon name="star-solid" color="accent.main" boxSize={3} m={0} />
</div>
</Tooltip>
Expand Down
34 changes: 17 additions & 17 deletions src/lib/pages/account-details/components/AccountHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,24 +63,24 @@ export const AccountHeader = ({
</Text>
<Flex gap={1} align="center">
{icnsName.names.map((name) => (
<div key={name}>
<Flex
key={name}
align="center"
direction="row"
_after={{
content: '"/"',
fontSize: "14px",
}}
_last={{
_after: {
display: "none",
},
}}
gap={1}
>
{name === icnsName.primary_name && <PrimaryNameMark />}
<CopyLink
value={name}
type="icns_names"
withoutIcon
_after={{
content: '"/"',
fontSize: "14px",
ml: 1,
}}
_last={{
_after: {
display: "none",
},
}}
/>
</div>
<CopyLink value={name} type="icns_names" withoutIcon />
</Flex>
))}
</Flex>
</Flex>
Expand Down

2 comments on commit 7c2a330

@vercel
Copy link

@vercel vercel bot commented on 7c2a330 Aug 4, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 7c2a330 Aug 4, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.