Commit a88c0837 authored by lynn's avatar lynn Committed by GitHub

fix: token details loading state fixes (#5567)

* init

* no export

* respond to jordan
parent 1a6cad4a
...@@ -73,7 +73,7 @@ export const TokenPrice = styled.span` ...@@ -73,7 +73,7 @@ export const TokenPrice = styled.span`
font-size: 36px; font-size: 36px;
line-height: 44px; line-height: 44px;
` `
export const DeltaContainer = styled.div` const DeltaContainer = styled.div`
height: 16px; height: 16px;
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -9,7 +9,7 @@ import { LoadingBubble } from '../loading' ...@@ -9,7 +9,7 @@ import { LoadingBubble } from '../loading'
import { LogoContainer } from '../TokenTable/TokenRow' import { LogoContainer } from '../TokenTable/TokenRow'
import { AboutContainer, AboutHeader } from './About' import { AboutContainer, AboutHeader } from './About'
import { BreadcrumbNavLink } from './BreadcrumbNavLink' import { BreadcrumbNavLink } from './BreadcrumbNavLink'
import { DeltaContainer, TokenPrice } from './PriceChart' import { TokenPrice } from './PriceChart'
import { StatPair, StatsWrapper, StatWrapper } from './StatsSection' import { StatPair, StatsWrapper, StatWrapper } from './StatsSection'
export const Hr = styled.hr` export const Hr = styled.hr`
...@@ -97,31 +97,32 @@ const TokenLogoBubble = styled(DetailBubble)` ...@@ -97,31 +97,32 @@ const TokenLogoBubble = styled(DetailBubble)`
border-radius: 50%; border-radius: 50%;
` `
const TitleBubble = styled(DetailBubble)` const TitleBubble = styled(DetailBubble)`
width: 140px; width: 136px;
` `
const PriceBubble = styled(SquaredBubble)` const PriceBubble = styled(SquaredBubble)`
margin-top: 2px; margin-top: 4px;
height: 38px; height: 40px;
`
const DeltaBubble = styled(DetailBubble)`
margin-top: 6px;
width: 96px;
height: 20px;
` `
const SectionBubble = styled(SquaredBubble)` const SectionBubble = styled(SquaredBubble)`
width: 96px; width: 120px;
` `
const StatTitleBubble = styled(DetailBubble)` const StatTitleBubble = styled(DetailBubble)`
width: 25%; width: 80px;
margin-bottom: 4px; margin-bottom: 4px;
` `
const StatBubble = styled(SquaredBubble)` const StatBubble = styled(SquaredBubble)`
width: 50%; width: 116px;
` `
const WideBubble = styled(DetailBubble)` const WideBubble = styled(DetailBubble)`
margin-bottom: 6px; margin-bottom: 6px;
width: 100%; width: 100%;
` `
const ThinTitleBubble = styled(WideBubble)`
width: 120px;
`
const HalfWideBubble = styled(WideBubble)` const HalfWideBubble = styled(WideBubble)`
width: 50%; width: 50%;
` `
...@@ -131,6 +132,11 @@ const StatsLoadingContainer = styled.div` ...@@ -131,6 +132,11 @@ const StatsLoadingContainer = styled.div`
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
` `
const ExtraDetailsContainer = styled.div`
padding-top: 24px;
`
const ChartAnimation = styled.div` const ChartAnimation = styled.div`
animation: wave 8s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite; animation: wave 8s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
display: flex; display: flex;
...@@ -165,9 +171,6 @@ export function LoadingChart() { ...@@ -165,9 +171,6 @@ export function LoadingChart() {
<TokenPrice> <TokenPrice>
<PriceBubble /> <PriceBubble />
</TokenPrice> </TokenPrice>
<DeltaContainer>
<DeltaBubble />
</DeltaContainer>
<Space heightSize={6} /> <Space heightSize={6} />
<LoadingChartContainer> <LoadingChartContainer>
<div> <div>
...@@ -242,7 +245,15 @@ export default function TokenDetailsSkeleton() { ...@@ -242,7 +245,15 @@ export default function TokenDetailsSkeleton() {
</AboutContainer> </AboutContainer>
<WideBubble /> <WideBubble />
<WideBubble /> <WideBubble />
<HalfWideBubble /> <HalfWideBubble style={{ marginBottom: '24px' }} />
<ExtraDetailsContainer>
<ThinTitleBubble />
<HalfWideBubble />
</ExtraDetailsContainer>
<ExtraDetailsContainer>
<ThinTitleBubble />
<HalfWideBubble />
</ExtraDetailsContainer>
</LeftPanel> </LeftPanel>
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment