Skip to content

Commit efebf37

Browse files
committed
[Refactor] 새로운 대시보드 hover 효과
1 parent ffbd3c7 commit efebf37

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/components/modal/ChangeBebridge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ const ChangeBebridge = () => {
8989
{colors.map((color, index) => (
9090
<div key={index} className="relative">
9191
<button
92-
className={`cursor-pointer w-[30px] h-[30px] rounded-[15px] mr-2 transition-all duration-200
93-
hover:opacity-70 hover:scale-110`}
92+
className="cursor-pointer w-[30px] h-[30px] rounded-[15px] mr-2 transition-all duration-200
93+
hover:opacity-70 hover:scale-110"
9494
style={{ backgroundColor: color }}
9595
onClick={() => setSelected(index)} // 색상 선택 시 selected 업데이트
9696
/>

src/components/modal/NewDashboard.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ export default function NewDashboard({ onClose }: { onClose?: () => void }) {
5959
{colors.map((color, index) => (
6060
<div key={index} className="relative">
6161
<button
62-
className="cursor-pointer w-[30px] h-[30px] rounded-full mr-2"
62+
className="cursor-pointer w-[30px] h-[30px] rounded-[15px] mr-2 transition-all duration-200
63+
hover:opacity-70 hover:scale-110"
6364
style={{ backgroundColor: color }}
6465
onClick={() => setSelected(index)}
6566
/>

src/pages/dashboard/[dashboardId]/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ export default function Dashboard() {
101101
if (!isReady) return <div>로딩 중...</div>;
102102

103103
return (
104-
<div className="flex overflow-x-auto min-w-fit min-h-screen">
104+
<div className="flex h-screen overflow-hidden">
105105
<SideMenu teamId={teamId} dashboardList={dashboardList} />
106106

107-
<div className="flex-1">
107+
<div className="flex flex-col flex-1 overflow-hidden">
108108
<HeaderDashboard variant="dashboard" dashboardId={dashboardId} />
109109

110110
<div className="flex overflow-x-auto ">

0 commit comments

Comments
 (0)