Skip to content

Commit

Permalink
Merge pull request #2031 from ever-co/feat/ui-fixes
Browse files Browse the repository at this point in the history
Fixed minor UI issues
  • Loading branch information
evereq authored Dec 29, 2023
2 parents b212489 + 76b9122 commit 337a346
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 35 deletions.
9 changes: 1 addition & 8 deletions apps/web/lib/components/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,7 @@ export function Tooltip({
{...getTooltipProps()}
className={clsx('tooltip-container w-1/3 md:w-fit', labelContainerClassName)}
>
<span
className={clsx(labelClassName, 'text-xs font-poppins')}
// style={{
// fontFamily: 'poppins'
// }}
>
{label}
</span>
<span className={clsx(labelClassName, 'text-xs font-poppins')}>{label}</span>
<div {...getArrowProps()} className="tooltip-arrow" />
</Transition>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,17 @@ export function UserTeamBlockHeader() {
return (
<>
<div className="hidden sm:flex row font-normal pt-4 justify-between hidde dark:text-[#7B8089]">
<div className="flex items-center w-5/6">
<div className="flex items-center w-9/12">
<div
className={clsxm(
'w-1/6 text-center flex items-center justify-center gap-2 py-4 cursor-pointer',
activeFilter == 'all' &&
'border-b-4 border-primary dark:border-white text-primary dark:text-white'
'w-1/6 text-center flex items-center justify-center gap-2 py-4 cursor-pointer text-sm border-b-4 border-transparent',
activeFilter == 'all' && 'border-primary dark:border-white text-primary dark:text-white'
)}
onClick={() => setActiveFilter('all')}
>
<StopCircleIcon
className={clsxm(
'w-8 h-8 p-1 !text-gray-300 !fill-gray-400 dark:!text-white',
'w-7 h-7 p-1 !text-gray-300 !fill-gray-400 dark:!text-white',
activeFilter == 'all' &&
'!text-primary !fill-primary dark:!text-white dark:!fill-white'
)}
Expand All @@ -80,15 +79,14 @@ export function UserTeamBlockHeader() {
</div>
<div
className={clsxm(
'w-1/6 text-center flex items-center justify-center gap-2 py-4 cursor-pointer',
activeFilter == 'idle' &&
'border-b-4 border-primary dark:border-white text-primary dark:text-white'
'w-1/6 text-center flex items-center justify-center gap-2 py-4 cursor-pointer text-sm border-b-4 border-transparent',
activeFilter == 'idle' && 'border-primary dark:border-white text-primary dark:text-white'
)}
onClick={() => setActiveFilter('idle')}
>
<NotWorkingIcon
className={clsxm(
'w-8 h-8 p-1 !text-gray-300 dark:!text-white',
'w-7 h-7 p-1 !text-gray-300 dark:!text-white',
activeFilter == 'idle' && '!text-primary !fill-white dark:!text-white dark:!fill-white'
)}
/>
Expand All @@ -104,15 +102,15 @@ export function UserTeamBlockHeader() {
</div>
<div
className={clsxm(
'w-1/6 text-center flex items-center justify-center gap-2 py-4 cursor-pointer',
'w-1/6 text-center flex items-center justify-center gap-2 py-4 cursor-pointer text-sm border-b-4 border-transparent',
activeFilter == 'running' &&
'border-b-4 border-primary dark:border-white text-primary dark:text-white'
'border-primary dark:border-white text-primary dark:text-white'
)}
onClick={() => setActiveFilter('running')}
>
<TimerPlayIcon
className={clsxm(
'w-8 h-8 p-1 !text-gray-300 !fill-gray-400 dark:!text-white',
'w-7 h-7 p-1 !text-gray-300 !fill-gray-400 dark:!text-white',
activeFilter == 'running' &&
'!text-primary !fill-primary dark:!text-white dark:!fill-white'
)}
Expand All @@ -129,15 +127,14 @@ export function UserTeamBlockHeader() {
</div>
<div
className={clsxm(
'w-1/6 text-center flex items-center justify-center gap-2 py-4 cursor-pointer',
activeFilter == 'pause' &&
'border-b-4 border-primary dark:border-white text-primary dark:text-white'
'w-1/6 text-center flex items-center justify-center gap-2 py-4 cursor-pointer text-sm border-b-4 border-transparent',
activeFilter == 'pause' && 'border-primary dark:border-white text-primary dark:text-white'
)}
onClick={() => setActiveFilter('pause')}
>
<PauseIcon
className={clsxm(
'w-8 h-8 p-1 !text-gray-300 !fill-gray-400 dark:!text-white',
'w-7 h-7 p-1 !text-gray-300 !fill-gray-400 dark:!text-white',
activeFilter == 'pause' &&
'!text-primary !fill-primary dark:!text-white dark:!fill-white'
)}
Expand All @@ -154,15 +151,14 @@ export function UserTeamBlockHeader() {
</div>
<div
className={clsxm(
'w-1/6 text-center flex items-center justify-center gap-2 py-4 cursor-pointer',
activeFilter == 'online' &&
'border-b-4 border-primary dark:border-white text-primary dark:text-white'
'w-1/6 text-center flex items-center justify-center gap-2 py-4 cursor-pointer text-sm border-b-4 border-transparent',
activeFilter == 'online' && 'border-primary dark:border-white text-primary dark:text-white'
)}
onClick={() => setActiveFilter('online')}
>
<OnlineIcon
className={clsxm(
'w-8 h-8 p-1 !text-gray-400 dark:!text-white',
'w-7 h-7 p-1 !text-gray-400 dark:!text-white',
activeFilter == 'online' &&
'!text-primary !fill-white dark:!text-primary dark:!fill-white'
)}
Expand All @@ -179,7 +175,7 @@ export function UserTeamBlockHeader() {
</div>
</div>

<div className="1/6 flex justify-end gap-2 items-center">
<div className="3/12 flex justify-end gap-2 items-center">
{/* <Invite /> */}
{hook.filterType === 'search' ? (
<TaskNameFilter
Expand All @@ -191,7 +187,7 @@ export function UserTeamBlockHeader() {
}}
/>
) : (
<>
<div className="flex gap-6">
<button
ref={hook.outclickFilterCard.ignoreElementRef}
className={clsxm('outline-none')}
Expand All @@ -204,12 +200,13 @@ export function UserTeamBlockHeader() {
)}
/>
</button>

<VerticalSeparator />

<Button className="py-3.5 px-4 gap-3 rounded-xl outline-none" onClick={openModal}>
<Button className="py-3.5 px-4 gap-3 rounded-xl outline-none w-44" onClick={openModal}>
Invite
</Button>
</>
</div>
)}
</div>
</div>
Expand Down
5 changes: 2 additions & 3 deletions apps/web/lib/features/timer/timer-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ export function getTimerStatusValue(
moment().diff(moment(timerStatus?.lastLog?.startedAt), 'hours') < 24 &&
timerStatus?.lastLog?.source !== 'TEAMS'
? 'pause'
: member?.employee?.isOnline
? // && member?.timerStatus !== 'running'
'online'
: member?.employee?.isOnline && member?.timerStatus === 'running'
? 'online'
: !member?.totalTodayTasks?.length
? 'idle'
: member?.timerStatus || 'idle';
Expand Down

0 comments on commit 337a346

Please sign in to comment.