diff --git a/src/ui/component/ChainIcon.tsx b/src/ui/component/ChainIcon.tsx index e9958513619..4d79d216734 100644 --- a/src/ui/component/ChainIcon.tsx +++ b/src/ui/component/ChainIcon.tsx @@ -120,7 +120,7 @@ const ChainIcon = ({ showCustomRPCToolTip = false, nonce, innerClassName, - tooltipTriggerElement = 'chain', + tooltipTriggerElement = 'dot', tooltipProps, }: Props) => { const wallet = useWallet(); @@ -197,7 +197,7 @@ const ChainIcon = ({ ); } else { return ( -
+
- ))} - +
); } diff --git a/src/ui/component/ChainSelector/InForm.tsx b/src/ui/component/ChainSelector/InForm.tsx index cc67bc0aa08..90d1cbc964b 100644 --- a/src/ui/component/ChainSelector/InForm.tsx +++ b/src/ui/component/ChainSelector/InForm.tsx @@ -16,10 +16,10 @@ import { SWAP_SUPPORT_CHAINS } from '@/constant'; import { findChain } from '@/utils/chain'; const ChainWrapper = styled.div` - height: 40px; + /* height: 40px; */ background: var(--r-neutral-card-2, #f2f4f7); border-radius: 6px; - padding: 12px 10px; + padding: 12px 12px; width: 100%; display: flex; align-items: center; @@ -39,6 +39,7 @@ const ChainWrapper = styled.div` } .name { color: var(--r-neutral-title-1, #192945); + line-height: 15px; } } `; @@ -155,6 +156,7 @@ export default function ChainSelectorInForm({ supportChains={supportChains} disabledTips={disabledTips} title={title} + showRPCStatus /> )} diff --git a/src/ui/component/ChainSelector/LargeModal.tsx b/src/ui/component/ChainSelector/LargeModal.tsx index 0ad2b26d23b..69738981ad8 100644 --- a/src/ui/component/ChainSelector/LargeModal.tsx +++ b/src/ui/component/ChainSelector/LargeModal.tsx @@ -30,6 +30,18 @@ import NetSwitchTabs, { } from '../PillsSwitch/NetSwitchTabs'; import { useTranslation } from 'react-i18next'; import { LoadingBalances } from './LoadingBalances'; +import styled from 'styled-components'; + +const Warper = styled.div` + .ant-input { + &::placeholder { + color: var(--r-neutral-foot); + } + } + .select-chain-item::after { + border-bottom-width: 0.5px !important; + } +`; interface ChainSelectorModalProps { visible: boolean; @@ -190,63 +202,65 @@ export const ChainSelectorLargeModal = ({ centered destroyOnClose > -
-
{title}
- {isShowTestnet && ( - +
+
{title}
+ {isShowTestnet && ( + + )} + } + // Search chain + placeholder={t('component.ChainSelectorModal.searchPlaceholder')} + onChange={(e) => setSearch(e.target.value)} + value={search} + allowClear + className="bg-r-neutral-card-1 hover:border-rabby-blue-default" /> +
+ {isLoading ? ( +
+ +
+ ) : ( +
+ + + {matteredList.length === 0 && unmatteredList.length === 0 ? ( +
+ + {/* No chains */} + {t('component.ChainSelectorModal.noChains')} + +
+ ) : null} +
)} - } - // Search chain - placeholder={t('component.ChainSelectorModal.searchPlaceholder')} - onChange={(e) => setSearch(e.target.value)} - value={search} - allowClear - className="bg-r-neutral-card-1" - /> -
- {isLoading ? ( -
- -
- ) : ( -
- - - {matteredList.length === 0 && unmatteredList.length === 0 ? ( -
- - {/* No chains */} - {t('component.ChainSelectorModal.noChains')} - -
- ) : null} -
- )} + ); }; diff --git a/src/ui/component/ChainSelector/components/SelectChainItem.tsx b/src/ui/component/ChainSelector/components/SelectChainItem.tsx index b51e5b5f945..b3f968101bb 100644 --- a/src/ui/component/ChainSelector/components/SelectChainItem.tsx +++ b/src/ui/component/ChainSelector/components/SelectChainItem.tsx @@ -109,6 +109,7 @@ export const SelectChainItem = forwardRef( ? customRPC[data.enum].url : '' } + showCustomRPCToolTip /> ) : ( { onChange={handleChainChanged} onCancel={() => rejectApproval('User rejected the request.')} disabledTips={t('page.addToken.noTokenFoundOnThisChain')} + showRPCStatus />
diff --git a/src/ui/views/Approval/components/TxComponents/GnosisDrawer.tsx b/src/ui/views/Approval/components/TxComponents/GnosisDrawer.tsx index 2fd078d6edd..32be259cf80 100644 --- a/src/ui/views/Approval/components/TxComponents/GnosisDrawer.tsx +++ b/src/ui/views/Approval/components/TxComponents/GnosisDrawer.tsx @@ -6,6 +6,7 @@ import { Account } from 'background/service/preference'; import { useWallet, isSameAddress } from 'ui/utils'; import { BasicSafeInfo } from '@rabby-wallet/gnosis-sdk'; import { AddressItem, ownerPriority } from './DrawerAddressItem'; +import clsx from 'clsx'; interface GnosisDrawerProps { // safeInfo: SafeInfo; @@ -122,7 +123,18 @@ const GnosisDrawer = ({ safeInfo, onCancel, onConfirm }: GnosisDrawerProps) => { ))}
-