Skip to content

Commit

Permalink
Fix: pie chart ui 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dongree committed Oct 20, 2023
1 parent 925d936 commit 50b2adc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/me/MeTagsContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function MeTagsContainer({
isLogin,
}: Props) {
return (
<div className="my-10">
<div className="mt-10">
<div className="flex flex-wrap justify-center items-center mx-10 sm:text-2xl font-bold">
<span>{userInfo.nickname}님은</span>
<TagView
Expand Down
2 changes: 1 addition & 1 deletion src/components/me/StatsInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function StatsInfo({ userStats }: Props) {
return (
<div className="flex flex-col sm:flex-row justify-center items-center w-full gap-8">
<PieChart userStats={userStats} />
<ul className="text-soma-grey-70">
<ul className="text-soma-grey-70 font-medium">
<li>
메모를 총{' '}
<span className={countStyle}>{memoScoreAndCount.count}</span>{' '}
Expand Down
5 changes: 3 additions & 2 deletions src/components/shared/PieChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function PieChart({
],
datasets: [
{
label: 'of Percentage',
label: '(%)',
data: [
memoPercent * 100,
questionPercent * 100,
Expand All @@ -53,7 +53,7 @@ export default function PieChart({
'rgba(255, 235, 224, 1)',
'rgba(228, 237, 253, 1)',
],
borderColor: ['rgba(0, 0, 0, 0.7)'],
borderColor: ['rgba(0, 0, 0, 1)'],
borderWidth: 1.5,
},
],
Expand All @@ -62,6 +62,7 @@ export default function PieChart({
return (
<Pie
data={data}
height={300}
options={{
responsive: false,
plugins: { legend: { position: 'right' } },
Expand Down

0 comments on commit 50b2adc

Please sign in to comment.