Skip to content

Commit 4a70d3e

Browse files
committed
docs(coin-app): Improve style of charts
1 parent b354ec4 commit 4a70d3e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

examples/coin-app/src/pages/AssetDetail/LineChart.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function LineChart({ data, width, height }: Props) {
4747
width="100%"
4848
height={height}
4949
preserveAspectRatio="none"
50+
style={{ overflow: 'visible' }}
5051
>
5152
<path d={path} fill="none" stroke="currentColor" strokeWidth="2" />
5253
{/* <text

examples/coin-app/src/pages/AssetDetail/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ export default function AssetDetail({ id }: { id: string }) {
1212
<>
1313
<header>
1414
<h1>
15-
<img src={currency.icon} /> {currency.name}
15+
<img
16+
src={currency.icon}
17+
style={{ height: '1em', width: '1em', marginBottom: '-.1em' }}
18+
/>{' '}
19+
{currency.name}
1620
</h1>
1721
<h2>
1822
<AssetPrice product_id={`${currency.id}-USD`} />

0 commit comments

Comments
 (0)