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(components): fix tx msg detail alignment in mobile #1126

Merged
merged 1 commit into from
Sep 2, 2024
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 @@ -62,6 +62,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

- [#1126](https://github.com/alleslabs/celatone-frontend/pull/1126) Fix tx message detail alignment in small screen
- [#1119](https://github.com/alleslabs/celatone-frontend/pull/1119) Fix move verification bug bash
- [#1115](https://github.com/alleslabs/celatone-frontend/pull/1115) Fix move reverify button
- [#1108](https://github.com/alleslabs/celatone-frontend/pull/1108) Fix example dev config to initialocal
Expand Down
22 changes: 11 additions & 11 deletions src/lib/pages/tx-details/components/tx-message/TxMsgExpand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const TxMsgExpand = ({

msgIcon = "upload";
content = (
<Flex gap={1}>
<Flex gap={1} display="inline">
Upload Wasm{" "}
{log && (
<>
Expand All @@ -76,7 +76,7 @@ export const TxMsgExpand = ({
case "/cosmwasm.wasm.v1.MsgInstantiateContract":
msgIcon = "instantiate";
content = (
<Flex gap={1}>
<Flex gap={1} display="inline">
Instantiate{" "}
{log && (
<ExplorerLink
Expand Down Expand Up @@ -104,7 +104,7 @@ export const TxMsgExpand = ({
case "/cosmwasm.wasm.v1.MsgInstantiateContract2":
msgIcon = "instantiate";
content = (
<Flex gap={1}>
<Flex gap={1} display="inline">
Instantiate2{" "}
{log && (
<ExplorerLink
Expand Down Expand Up @@ -132,7 +132,7 @@ export const TxMsgExpand = ({
case "/cosmwasm.wasm.v1.MsgExecuteContract":
msgIcon = "execute";
content = (
<Flex gap={1}>
<Flex gap={1} display="inline">
Execute{" "}
<span style={{ fontWeight: 700 }}>
{Object.keys(body.msg as Record<string, unknown>)[0]}
Expand All @@ -151,7 +151,7 @@ export const TxMsgExpand = ({
case "/cosmwasm.wasm.v1.MsgMigrateContract":
msgIcon = "migrate";
content = (
<Flex gap={1}>
<Flex gap={1} display="inline">
Migrate{" "}
<ExplorerLink
type="contract_address"
Expand All @@ -174,7 +174,7 @@ export const TxMsgExpand = ({
case "/cosmwasm.wasm.v1.MsgUpdateAdmin":
msgIcon = "admin-edit";
content = (
<Flex gap={1}>
<Flex gap={1} display="inline">
Update admin on{" "}
<ExplorerLink
type="contract_address"
Expand All @@ -197,7 +197,7 @@ export const TxMsgExpand = ({
case "/cosmwasm.wasm.v1.MsgClearAdmin":
msgIcon = "admin-clear";
content = (
<Flex gap={1}>
<Flex gap={1} display="inline">
Clear admin on{" "}
<ExplorerLink
type="contract_address"
Expand Down Expand Up @@ -225,7 +225,7 @@ export const TxMsgExpand = ({
: formatTokenWithValue(singleToken);
msgIcon = "send";
content = (
<Flex gap={1}>
<Flex gap={1} display="inline">
Send {assetText} to{" "}
<ExplorerLink
type={getAddressType(toAddress)}
Expand All @@ -242,7 +242,7 @@ export const TxMsgExpand = ({
case "/cosmos.gov.v1.MsgSubmitProposal":
msgIcon = "submit-proposal";
content = (
<Flex gap={1}>
<Flex gap={1} display="inline">
Submit Proposal {(body.isExpedited as boolean) && " Expedited "}
{log && (
<>
Expand All @@ -264,7 +264,7 @@ export const TxMsgExpand = ({
case "/cosmos.gov.v1beta1.MsgVote":
msgIcon = "vote";
content = (
<Flex gap={1}>
<Flex gap={1} display="inline">
Vote{" "}
<span style={{ fontWeight: 700 }}>
{voteOption[body.option as VoteOption]}
Expand All @@ -283,7 +283,7 @@ export const TxMsgExpand = ({
case "/cosmos.staking.v1beta1.MsgDelegate":
msgIcon = "delegate";
content = (
<Flex gap={1}>
<Flex gap={1} display="inline">
Delegate by{" "}
<ExplorerLink
type={getAddressType(body.delegatorAddress as string)}
Expand Down
Loading