Skip to content

Commit

Permalink
Merge pull request #2776 from ever-co/fix/ui-improvements
Browse files Browse the repository at this point in the history
[Improvement]: Profile Page | UI improvement
  • Loading branch information
evereq authored Jul 20, 2024
2 parents ad0a0cb + 730c663 commit 7db14da
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
5 changes: 3 additions & 2 deletions apps/web/lib/features/task/daily-plan/future-tasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function FutureTasks({ profile }: { profile: any }) {
<HorizontalSeparator />
</div>
</AccordionTrigger>
<AccordionContent className="bg-light--theme border-none dark:bg-dark--theme">
<AccordionContent className="border-none dark:bg-dark--theme">
<PlanHeader plan={plan} planMode="Future Tasks" />
<Droppable droppableId={plan.id as string} key={plan.id} type="task">
{(provided) => (
Expand All @@ -79,7 +79,7 @@ export function FutureTasks({ profile }: { profile: any }) {
{...provided.dragHandleProps}
style={{
...provided.draggableProps.style,
marginBottom: 8
marginBottom: 4
}}
>
<TaskCard
Expand All @@ -94,6 +94,7 @@ export function FutureTasks({ profile }: { profile: any }) {
taskTitleClassName="mt-[0.0625rem]"
plan={plan}
planMode="Future Tasks"
className='shadow-[0px_0px_15px_0px_#e2e8f0]'
/>
</div>
)}
Expand Down
3 changes: 2 additions & 1 deletion apps/web/lib/features/task/daily-plan/outstanding-all.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function OutstandingAll({ profile }: OutstandingAll) {
{...provided.dragHandleProps}
style={{
...provided.draggableProps.style,
marginBottom: 8
marginBottom: 4
}}
>
<TaskCard
Expand All @@ -77,6 +77,7 @@ export function OutstandingAll({ profile }: OutstandingAll) {
taskBadgeClassName={`rounded-sm`}
taskTitleClassName="mt-[0.0625rem]"
planMode="Outstanding"
className='shadow-[0px_0px_15px_0px_#e2e8f0]'
/>
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/lib/features/task/daily-plan/outstanding-date.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function OutstandingFilterDate({ profile }: IOutstandingFilterDate) {
<HorizontalSeparator />
</div>
</AccordionTrigger>
<AccordionContent className="bg-light--theme border-none dark:bg-dark--theme pb-12">
<AccordionContent className="bg-transparent border-none dark:bg-dark--theme pb-12">
{/* Plan header */}
<PlanHeader plan={plan} planMode="Outstanding" />
<Droppable droppableId={plan.id as string} key={plan.id} type="task">
Expand Down
5 changes: 3 additions & 2 deletions apps/web/lib/features/task/daily-plan/past-tasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function PastTasks({ profile, currentTab = 'Past Tasks' }: { profile: any
<HorizontalSeparator />
</div>
</AccordionTrigger>
<AccordionContent className="bg-light--theme border-none dark:bg-dark--theme pb-12">
<AccordionContent className="border-none dark:bg-dark--theme pb-6">
{/* Plan header */}
<PlanHeader plan={plan} planMode="Outstanding" />
<Droppable
Expand Down Expand Up @@ -78,7 +78,7 @@ export function PastTasks({ profile, currentTab = 'Past Tasks' }: { profile: any
{...provided.dragHandleProps}
style={{
...provided.draggableProps.style,
marginBottom: 8
marginBottom: 4
}}
>
<TaskCard
Expand All @@ -96,6 +96,7 @@ export function PastTasks({ profile, currentTab = 'Past Tasks' }: { profile: any
? 'Past Tasks'
: undefined
}
className='shadow-[0px_0px_15px_0px_#e2e8f0]'
/>
</div>
)}
Expand Down
7 changes: 4 additions & 3 deletions apps/web/lib/features/user-profile-plans.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function AllPlans({ profile, currentTab = 'All Tasks' }: { profile: any; current
<HorizontalSeparator />
</div>
</AccordionTrigger>
<AccordionContent className="bg-light--theme border-none dark:bg-dark--theme">
<AccordionContent className="bg-transparent border-none dark:bg-dark--theme">
<PlanHeader plan={plan} planMode={currentTab as any} />
<Droppable
droppableId={plan.id as string}
Expand Down Expand Up @@ -243,7 +243,7 @@ function AllPlans({ profile, currentTab = 'All Tasks' }: { profile: any; current
{...provided.dragHandleProps}
style={{
...provided.draggableProps.style,
marginBottom: 8
marginBottom: 6
}}
>
<TaskCard
Expand All @@ -261,6 +261,7 @@ function AllPlans({ profile, currentTab = 'All Tasks' }: { profile: any; current
: undefined
}
plan={plan}
className='shadow-[0px_0px_15px_0px_#e2e8f0]'
/>
</div>
)}
Expand Down Expand Up @@ -379,7 +380,7 @@ export function PlanHeader({ plan, planMode }: { plan: IDailyPlan; planMode: Fil

return (
<div
className={`mb-8 flex ${planMode === 'Future Tasks' ? 'justify-start' : 'justify-around'} items-center gap-5`}
className={`mb-6 flex ${planMode === 'Future Tasks' ? 'justify-start' : 'justify-around'} items-center gap-5`}
>
{/* Planned Time */}

Expand Down

0 comments on commit 7db14da

Please sign in to comment.