Skip to content

Commit cf92fcf

Browse files
committed
refactor(onboarding): update TasksToday component layout for improved task display
- Replaced the unordered list with a flexbox layout for task presentation in the TasksToday component. - Enhanced styling for better visual consistency and user experience while displaying tasks. - Maintained functionality while improving the overall structure and readability of the component.
1 parent f859a06 commit cf92fcf

File tree

1 file changed

+10
-12
lines changed
  • packages/web/src/views/Onboarding/steps/tasks/TasksToday

1 file changed

+10
-12
lines changed

packages/web/src/views/Onboarding/steps/tasks/TasksToday/TasksToday.tsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,16 @@ export const TasksToday: React.FC<OnboardingStepProps> = ({
8282
className="w-full rounded border-2 border-[hsl(202_100_67)] bg-white px-3 py-2 font-['Rubik'] text-sm text-black shadow-[0_0_8px_rgba(96,165,250,0.3)] placeholder:text-[#666] focus:border-[hsl(202_100_67)] focus:shadow-[0_0_12px_rgba(96,165,250,0.5)] focus:outline-none"
8383
/>
8484
)}
85-
{tasks.length > 0 && (
86-
<ul className="m-0 w-full list-none p-0">
87-
{tasks.map((task) => (
88-
<li
89-
key={task.id}
90-
className="w-full rounded bg-white px-3 py-2 font-['Rubik'] text-sm text-black"
91-
>
92-
{task.title}
93-
</li>
94-
))}
95-
</ul>
96-
)}
85+
<div className="m-0 flex w-full list-none flex-col gap-2 p-0">
86+
{tasks.map((task) => (
87+
<div
88+
key={task.id}
89+
className="w-full rounded bg-white px-3 py-2 font-['Rubik'] text-sm text-black"
90+
>
91+
{task.title}
92+
</div>
93+
))}
94+
</div>
9795
</div>
9896
</div>
9997
<div className="flex w-[350px] flex-1 flex-col bg-[#23262f] p-5">

0 commit comments

Comments
 (0)