Skip to content

Commit

Permalink
fix(components): fix tx msg detail alignment in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
jennieramida committed Sep 2, 2024
1 parent 1f8cd12 commit 30605be
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
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

0 comments on commit 30605be

Please sign in to comment.