From d82e3253131f3958fdca3a83279197411ce11a32 Mon Sep 17 00:00:00 2001 From: cedric karungu Date: Sun, 10 Dec 2023 21:02:39 +0200 Subject: [PATCH 1/3] feat: make issue input responsive in home page --- apps/web/lib/layout/navbar.tsx | 13 ++-- apps/web/pages/index.tsx | 95 +++++++++++++-------------- apps/web/pages/profile/[memberId].tsx | 2 +- 3 files changed, 53 insertions(+), 57 deletions(-) diff --git a/apps/web/lib/layout/navbar.tsx b/apps/web/lib/layout/navbar.tsx index 9486ee366..cc9f8f749 100644 --- a/apps/web/lib/layout/navbar.tsx +++ b/apps/web/lib/layout/navbar.tsx @@ -81,14 +81,15 @@ export function Navbar({ )} {showTimer && } - {!publicTeam && } +
+ {!publicTeam && } - {isTeamMember && isTeamDropdownAllowed ? ( - - ) : null} - - + {isTeamMember && isTeamDropdownAllowed ? ( + + ) : null} + +
{!publicTeam && } )} diff --git a/apps/web/pages/index.tsx b/apps/web/pages/index.tsx index 61d017808..04aeff146 100644 --- a/apps/web/pages/index.tsx +++ b/apps/web/pages/index.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import { useOrganizationTeams } from '@app/hooks'; import { clsxm } from '@app/utils'; import NoTeam from '@components/pages/main/no-team'; @@ -47,58 +48,46 @@ function MainPage() { {/* */}
- - + + - - + + - - + + - + {/* Timer */} {isTrackingEnabled ? : null} diff --git a/apps/web/pages/profile/[memberId].tsx b/apps/web/pages/profile/[memberId].tsx index 6c17bbbf2..b2370646a 100644 --- a/apps/web/pages/profile/[memberId].tsx +++ b/apps/web/pages/profile/[memberId].tsx @@ -123,7 +123,7 @@ function UserProfileDetail({ member }: { member?: OT_Member }) {
- + {user?.firstName} {user?.lastName} {user?.email} From 53b8f9617f1d3d805ff76c3e283127fdfaf6ed1f Mon Sep 17 00:00:00 2001 From: cedric karungu Date: Tue, 12 Dec 2023 16:36:41 +0200 Subject: [PATCH 2/3] feat: navbar responsive --- apps/web/lib/features/task/task-filters.tsx | 22 +++++++++++++-------- apps/web/lib/features/user-nav-menu.tsx | 21 +++++++++++++++++++- apps/web/lib/layout/navbar.tsx | 2 +- apps/web/pages/index.tsx | 2 +- apps/web/pages/profile/[memberId].tsx | 4 ++-- 5 files changed, 38 insertions(+), 13 deletions(-) diff --git a/apps/web/lib/features/task/task-filters.tsx b/apps/web/lib/features/task/task-filters.tsx index fdaff4a8d..77a580cea 100644 --- a/apps/web/lib/features/task/task-filters.tsx +++ b/apps/web/lib/features/task/task-filters.tsx @@ -184,8 +184,13 @@ export type I_TaskFilter = ReturnType; type Props = { hook: I_TaskFilter; profile: I_UserProfilePage }; export function TaskFilter({ className, hook, profile }: IClassName & Props) { return ( -
-
+
+
@@ -200,7 +205,7 @@ export function TaskFilter({ className, hook, profile }: IClassName & Props) { leave="transition duration-75 ease-out" leaveFrom="transform scale-100 opacity-100" leaveTo="transform scale-95 opacity-0 ease-out" - // className="pb-3" + className="w-full" ref={hook.outclickFilterCard.targetEl} > {/* {hook.filterType !== undefined && } */} @@ -291,22 +296,23 @@ function InputFilters({ hook, profile }: Props) { /* It's a function that returns a nav element. */ function TabsNav({ hook }: { hook: I_TaskFilter }) { return ( -