Skip to content

Commit c90e5ea

Browse files
committed
Add Changelog Fragment
1 parent 9f611ea commit c90e5ea

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.changelog/2258.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update Box element.

src/app/components/PageLayout/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { useScopeParam } from '../../hooks/useScopeParam'
77
import { NetworkOfflineBanner, RuntimeOfflineBanner, ConsensusOfflineBanner } from '../OfflineBanner'
88
import { Search } from '../Search'
99
import { useIsApiReachable } from '../OfflineBanner/hook'
10+
import { useTheme } from '@mui/material/styles'
1011

1112
interface PageLayoutProps {
1213
mobileFooterAction?: ReactNode
@@ -16,6 +17,7 @@ export const PageLayout: FC<PropsWithChildren<PageLayoutProps>> = ({ children, m
1617
const { isMobile, isTablet } = useScreenSize()
1718
const scope = useScopeParam()
1819
const isApiReachable = useIsApiReachable(scope?.network ?? 'mainnet').reachable
20+
const theme = useTheme()
1921

2022
return (
2123
<>
@@ -25,7 +27,12 @@ export const PageLayout: FC<PropsWithChildren<PageLayoutProps>> = ({ children, m
2527
{scope && scope.layer === 'consensus' && <ConsensusOfflineBanner />}
2628
<div className="min-h-screen">
2729
<Header />
28-
<div className="border-8 md:border-[15px] border-transparent px-0 md:px-[4%] pt-4 md:pt-6 md:border-t-0">
30+
<div
31+
className="border-8 md:border-[15px] border-transparent px-0 md:px-[4%] pt-4 md:pt-6 md:border-t-0"
32+
style={{
33+
borderColor: theme.palette.layout.border,
34+
}}
35+
>
2936
{!isMobile && (
3037
<div className="mb-6">
3138
<Search scope={scope} variant={isTablet ? 'icon' : 'button'} disabled={!isApiReachable} />

src/app/components/Tokens/TokenDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const TokenDetails: FC<{
4242
address={token.eth_contract_addr ?? token.contract_addr}
4343
name={token.name}
4444
/>
45-
<div className="ml-3 font-bold text-muted-foreground whitespace-nowrap">
45+
<div className="ml-2 font-bold text-muted-foreground whitespace-nowrap">
4646
<HighlightedText text={token.symbol} />
4747
</div>
4848
</dd>

src/app/components/Tokens/TokenLinkWithIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const TokenLinkWithIcon: FC<{
1616
const { t } = useTranslation()
1717
const { metadata } = useAccountMetadata(scope, address)
1818
return (
19-
<div className="flex items-center gap-4">
19+
<div className="flex items-center gap-2">
2020
<Tooltip
2121
placement="top"
2222
arrow

src/app/components/Tooltip/MaybeWithTooltip.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ export const MaybeWithTooltip: FC<MaybeWithTooltipProps> = ({ title, children, s
2828
<Tooltip
2929
placement="top"
3030
title={
31-
<div className="flex items-center gap-2 md:mx-0 -mx-3 min-w-0 [overflow-wrap:anywhere] rounded-lg">
32-
{title}
33-
</div>
31+
<div className="flex items-center gap-2 md:mx-0 -mx-3 min-w-0 [overflow-wrap:anywhere]">{title}</div>
3432
}
3533
disableFocusListener={!title}
3634
disableHoverListener={!title}

0 commit comments

Comments
 (0)