From 60c0298ed050852640394874cff4090c8867fd3a Mon Sep 17 00:00:00 2001 From: cong_wang Date: Wed, 4 Dec 2024 16:16:50 +0800 Subject: [PATCH] fix: Fixed known issues --- .../solscan/components/PhalconExplorerButton/index.tsx | 2 +- src/content/solscan/feat-scripts/fund-flow.tsx | 2 +- src/content/solscan/feat-scripts/quick2parsers.tsx | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/content/solscan/components/PhalconExplorerButton/index.tsx b/src/content/solscan/components/PhalconExplorerButton/index.tsx index 5a370a3..1319d23 100644 --- a/src/content/solscan/components/PhalconExplorerButton/index.tsx +++ b/src/content/solscan/components/PhalconExplorerButton/index.tsx @@ -19,7 +19,7 @@ const PhalconExplorerButton: FC = ({ txHash }) => { theme={{ components: { Button: { - controlHeight: 34, + controlHeight: 28, borderRadius: 8, fontSize: 12 } diff --git a/src/content/solscan/feat-scripts/fund-flow.tsx b/src/content/solscan/feat-scripts/fund-flow.tsx index f01a3ec..63e26f3 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 = 0 + style.marginLeft = 16 } else { style.marginTop = 16 } diff --git a/src/content/solscan/feat-scripts/quick2parsers.tsx b/src/content/solscan/feat-scripts/quick2parsers.tsx index aeb052a..14a4b7d 100644 --- a/src/content/solscan/feat-scripts/quick2parsers.tsx +++ b/src/content/solscan/feat-scripts/quick2parsers.tsx @@ -6,10 +6,12 @@ import { PhalconExplorerButton } from '../components' const renderAlternativeParsers = async () => { if ($('#__metadock-alternative-parsers__').length) return 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)' + '#__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(1) > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1)' ) const txHash = container.find('div:first').text().trim() - const rootEl = $('') + const rootEl = $( + '' + ) container.append(rootEl) createRoot(rootEl[0]).render()