Skip to content

Commit dc391d1

Browse files
committed
fix(misc): fix the blinking ethereum logo on ios safari and temporarily remove the overflow settings to fix double scrolling situation
1 parent e2d0514 commit dc391d1

File tree

5 files changed

+3
-23
lines changed

5 files changed

+3
-23
lines changed
3.54 KB
Loading

src/assets/images/ethereum-logo.svg

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/components/TokenLogo/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { isAddress } from '../../utils'
44
import { useActiveWeb3React } from '../../hooks'
55
import { WETH } from '@uniswap/sdk'
66

7-
import { ReactComponent as EthereumLogo } from '../../assets/images/ethereum-logo.svg'
7+
import EthereumLogo from '../../assets/images/ethereum-logo.png'
88

99
const TOKEN_ICON_API = address =>
1010
`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/${address}/logo.png`
@@ -28,7 +28,7 @@ const Emoji = styled.span<{ size?: string }>`
2828
margin-bottom: -4px;
2929
`
3030

31-
const StyledEthereumLogo = styled(EthereumLogo)<{ size: string }>`
31+
const StyledEthereumLogo = styled.img<{ size: string }>`
3232
width: ${({ size }) => size};
3333
height: ${({ size }) => size};
3434
box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.075);
@@ -55,7 +55,7 @@ export default function TokenLogo({
5555
let path = ''
5656
// hard code to show ETH instead of WETH in UI
5757
if (address === WETH[chainId].address) {
58-
return <StyledEthereumLogo size={size} {...rest} />
58+
return <StyledEthereumLogo src={EthereumLogo} size={size} {...rest} />
5959
} else if (!error && !BAD_IMAGES[address] && isAddress(address)) {
6060
path = TOKEN_ICON_API(address)
6161
} else {

src/pages/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const AppWrapper = styled.div`
2121
flex-flow: column;
2222
align-items: flex-start;
2323
overflow-x: hidden;
24-
height: 100vh;
2524
`
2625

2726
const HeaderWrapper = styled.div`
@@ -109,7 +108,6 @@ export default function App() {
109108
<BackgroundGradient />
110109
</AppWrapper>
111110
</Router>
112-
<div id="popover-container" />
113111
</Suspense>
114112
)
115113
}

src/theme/index.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,21 +177,12 @@ html,
177177
body {
178178
margin: 0;
179179
padding: 0;
180-
width: 100%;
181-
height: 100%;
182-
overflow: hidden;
183180
}
184181
185182
* {
186183
box-sizing: border-box;
187184
}
188185
189-
body > div {
190-
height: 100%;
191-
overflow: auto;
192-
-webkit-overflow-scrolling: touch;
193-
}
194-
195186
html {
196187
font-size: 16px;
197188
font-variant: none;

0 commit comments

Comments
 (0)