diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fb484c..1a5c6e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### v5.4.1 + +- [fix] Corrected the issue with the Solscan link redirecting to the wrong Phalcon Explorer URL +- [style] Updated the styling of the Solscan Fund Flow button + ### v5.4.0 - [feat] Adapt to MantleScan diff --git a/package.json b/package.json index e275294..b4ddeb4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metasuites", - "version": "5.4.0", + "version": "5.4.1", "repository": { "type": "git", "url": "https://github.com/blocksecteam/metasuites.git" diff --git a/src/content/solscan/components/PhalconExplorerButton/index.module.less b/src/content/solscan/components/PhalconExplorerButton/index.module.less index 765b64a..a4b8a18 100644 --- a/src/content/solscan/components/PhalconExplorerButton/index.module.less +++ b/src/content/solscan/components/PhalconExplorerButton/index.module.less @@ -2,7 +2,6 @@ .button { gap: 4px; - border-radius: 6px !important; background: @phalcon-primary-color !important; display: flex !important; .items-center; diff --git a/src/content/solscan/components/PhalconExplorerButton/index.tsx b/src/content/solscan/components/PhalconExplorerButton/index.tsx index 3da898b..5a370a3 100644 --- a/src/content/solscan/components/PhalconExplorerButton/index.tsx +++ b/src/content/solscan/components/PhalconExplorerButton/index.tsx @@ -1,5 +1,5 @@ import { type FC } from 'react' -import { Button } from 'antd' +import { Button, ConfigProvider } from 'antd' import { PHALCON_EXPLORER_DOMAIN } from '@common/config/uri' @@ -15,34 +15,41 @@ const PhalconExplorerButton: FC = ({ txHash }) => { } return ( - + + ) } diff --git a/src/content/solscan/feat-scripts/fund-flow.tsx b/src/content/solscan/feat-scripts/fund-flow.tsx index 63e26f3..f01a3ec 100644 --- a/src/content/solscan/feat-scripts/fund-flow.tsx +++ b/src/content/solscan/feat-scripts/fund-flow.tsx @@ -26,7 +26,7 @@ const renderFundFlowButton = async ( mainAddressEl.append(btnRootEl) const style: CSSProperties = {} if (isAccountPage) { - style.marginLeft = 16 + style.marginLeft = 0 } else { style.marginTop = 16 } diff --git a/src/content/solscan/feat-scripts/quick2parsers.tsx b/src/content/solscan/feat-scripts/quick2parsers.tsx index 3e89403..aeb052a 100644 --- a/src/content/solscan/feat-scripts/quick2parsers.tsx +++ b/src/content/solscan/feat-scripts/quick2parsers.tsx @@ -8,10 +8,8 @@ const renderAlternativeParsers = async () => { const container = $( '#__next > div:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) > div:nth-of-type(2) > div > div > div:nth-of-type(2) > div > div > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1)' ) - const txHash = container.text().trim() - const rootEl = $( - '' - ) + const txHash = container.find('div:first').text().trim() + const rootEl = $('') container.append(rootEl) createRoot(rootEl[0]).render()