diff --git a/packages/extension-polkagate/src/fullscreen/governance/FullScreenHeader.tsx b/packages/extension-polkagate/src/fullscreen/governance/FullScreenHeader.tsx index a4149ce4f..64c47010d 100644 --- a/packages/extension-polkagate/src/fullscreen/governance/FullScreenHeader.tsx +++ b/packages/extension-polkagate/src/fullscreen/governance/FullScreenHeader.tsx @@ -33,9 +33,10 @@ export const HEADER_COMPONENT_STYLE = { borderRadius: '5px', cursor: 'pointer', height: '42px', + minWidth: '42px', overflow: 'hidden', position: 'relative', - width: '42px' + width: 'fit-content' }; function FullScreenHeader ({ _otherComponents, noAccountDropDown = false, noChainSwitch = false, page, unableToChangeAccount }: Props): React.ReactElement { diff --git a/packages/extension-polkagate/src/fullscreen/homeFullScreen/partials/Currency.tsx b/packages/extension-polkagate/src/fullscreen/homeFullScreen/partials/Currency.tsx index 100e99771..149ee0829 100644 --- a/packages/extension-polkagate/src/fullscreen/homeFullScreen/partials/Currency.tsx +++ b/packages/extension-polkagate/src/fullscreen/homeFullScreen/partials/Currency.tsx @@ -21,10 +21,13 @@ export interface CurrencyItemType { interface Props { fontSize?: string; color?: string; + bgcolor?: string; + height?: string; + minWidth?: string; noBorder?: boolean; } -export default function Currency ({ color, fontSize = '22px', noBorder }: Props): React.ReactElement { +export default function Currency ({ bgcolor, color, fontSize = '22px', height, minWidth, noBorder }: Props): React.ReactElement { const theme = useTheme(); const [anchorEl, setAnchorEl] = useState(null); const [currencyToShow, setCurrencyToShow] = useState(); @@ -54,7 +57,9 @@ export default function Currency ({ color, fontSize = '22px', noBorder }: Props) return ( <> - + {currencyToShow?.sign || '$'} diff --git a/packages/extension-polkagate/src/partials/SettingSubMenu.tsx b/packages/extension-polkagate/src/partials/SettingSubMenu.tsx index cedf39d6c..dad9591a9 100644 --- a/packages/extension-polkagate/src/partials/SettingSubMenu.tsx +++ b/packages/extension-polkagate/src/partials/SettingSubMenu.tsx @@ -96,7 +96,7 @@ export default function SettingSubMenu ({ isTestnetEnabledChecked, onChange, set - + diff --git a/packages/extension-polkagate/src/popup/home/AiBackgroundImage.tsx b/packages/extension-polkagate/src/popup/home/AiBackgroundImage.tsx index 763ff7a83..10dcae4ac 100644 --- a/packages/extension-polkagate/src/popup/home/AiBackgroundImage.tsx +++ b/packages/extension-polkagate/src/popup/home/AiBackgroundImage.tsx @@ -98,7 +98,7 @@ export default function AiBackgroundImage ({ bgImage, setBgImage }: Props): Reac - + {t('AI Background')} diff --git a/packages/extension-polkagate/src/popup/home/YouHave.tsx b/packages/extension-polkagate/src/popup/home/YouHave.tsx index b27ff0f83..4109e0026 100644 --- a/packages/extension-polkagate/src/popup/home/YouHave.tsx +++ b/packages/extension-polkagate/src/popup/home/YouHave.tsx @@ -32,6 +32,8 @@ export default function YouHave (): React.ReactElement { const youHave = useYouHave(); const currency = useCurrency(); + const isDark = theme.palette.mode === 'dark'; + const { isHideNumbers, toggleHideNumbers } = useIsHideNumbers(); const [isMenuOpen, setOpenMenu] = useState(false); @@ -50,7 +52,7 @@ export default function YouHave (): React.ReactElement { }, []); return ( - + @@ -65,17 +67,28 @@ export default function YouHave (): React.ReactElement { sx={{ height: '30px', width: '154px' }} /> : <> - - + + + + + 0 ? 'success.main' : 'warning.main', fontSize: '15px', fontWeight: 400 }}> - + - - - } - + {initialAccountList.map((json, index): React.ReactNode => (