Skip to content

Commit 330ebb7

Browse files
committed
refact: 사용자 응답 관리 페이지 반응형
1 parent 852c178 commit 330ebb7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/features/dashboard/ui/MultiplePieCharts.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ const MultiplePieCharts = ({ responses }: MultiplePieChartsProps) => {
3030
return (
3131
<div key={`${option.optionId}-${index}`} className="flex flex-col items-center">
3232
<h3 className="mb-2 font-semibold text-lg">{option.optionName}</h3>
33-
<ResponsiveContainer width="100%" height={300}>
33+
<ResponsiveContainer width="100%" height={350}>
3434
<PieChart>
35-
<Pie data={data} dataKey="value" nameKey="name" cx="50%" cy="50%" outerRadius={80} label stroke="none">
35+
<Pie data={data} dataKey="value" nameKey="name" cx="50%" cy="50%" outerRadius={90} label stroke="none">
3636
{data.map((_, i) => (
3737
<Cell key={`cell-${i}`} fill={COLORS[i % COLORS.length]} />
3838
))}

src/widgets/dashboard/ui/response/ResponseModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const ResponesModal = ({ onClose }: ResponesModalProps) => {
3131
onClose();
3232
}}
3333
/>
34-
<h1 className="font-bold text-lg">응답을 확인할 티켓을 선택하세요</h1>
34+
<h1 className="font-bold text-lg sm:text-sm">응답을 확인할 티켓을 선택하세요</h1>
3535
</div>
3636
{isLoading ? (
3737
<div>로딩 중...</div>

src/widgets/dashboard/ui/ticket/SelectTicketInfo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const SelectTicketInfo = ({ tickets, onClick }: SelectTicketInfoProps) => {
1212
<div className="flex items-center justify-between w-full h-14 bg-white border-[0.5px] border-[#D9D9D9] rounded-[5px]">
1313
<div className="flex items-center gap-3 ml-4">
1414
<img src={ticket} alt="티켓 아이콘" />
15-
<p className="font-bold text-base">{tickets.ticketName}</p>
16-
<p className="text-14">{tickets.ticketPrice}</p>
15+
<p className="font-bold text-base sm:text-xs">{tickets.ticketName}</p>
16+
<p className="text-14 sm:text-sm">{tickets.ticketPrice}</p>
1717
</div>
1818
<div className="flex items-center justify-center bg-main w-20 h-14 rounded-r-[5px]">
1919
<TextButton label=">" onClick={onClick} className="text-white text-xl font-bold" />

0 commit comments

Comments
 (0)