Skip to content

Commit 74f277b

Browse files
committed
Fix pie chart vertical whitespace on narrow screens
1 parent b57d591 commit 74f277b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

atcoder-problems-frontend/src/components/SinglePieChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const SinglePieChart: React.FC<Props> = ({ data, hideLegend }) => {
7575

7676
return (
7777
<div>
78-
<ResponsiveContainer width="100%" height={300}>
78+
<ResponsiveContainer width="100%" aspect={1} maxHeight={300}>
7979
<PieChart>
8080
<Pie
8181
activeIndex={activeIndex}

0 commit comments

Comments
 (0)