Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix icns names and contract address alignment #460

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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