Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix layout of doughnut chart #183

Merged
merged 2 commits into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 3 additions & 15 deletions src/components/latest-assets-percentage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const App = ({
display: true,
position: "right",
font: {
size: 14,
size: 13,
},
labels: { font: {} },
},
Expand Down Expand Up @@ -203,21 +203,9 @@ const App = ({
return (
<div>
<Card>
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
<CardTitle className="text-sm font-medium font-bold">
{/* Percentage of Assets */}
</CardTitle>
</CardHeader>
<CardContent>
<CardContent className="p-6">
<div className="grid gap-4 grid-cols-2 md:grid-cols-5">
<div
className="col-span-2 md:col-span-3"
style={{
height: 300,
}}
>
{renderDoughnut()}
</div>
<div className="col-span-2 md:col-span-3">{renderDoughnut()}</div>
<div className="col-span-2 md:col-span-2 flex flex-col items-start justify-top">
{renderTokenHoldingList()}
</div>
Expand Down
Loading