From ea436c925a19205b6d52ddb35e8487d8f777e28b Mon Sep 17 00:00:00 2001 From: Ramesh Kumar Chandra <31303617+rameshkumarchandra@users.noreply.github.com> Date: Mon, 29 Apr 2024 00:54:02 +0530 Subject: [PATCH] projects list responsiveness (#4279) --- web/components/headers/projects.tsx | 42 ++++----- web/components/project/dropdowns/order-by.tsx | 24 +++-- .../project/projects-mobile-header.tsx | 88 +++++++++++++++++++ web/pages/[workspaceSlug]/projects/index.tsx | 3 +- 4 files changed, 130 insertions(+), 27 deletions(-) create mode 100644 web/components/project/projects-mobile-header.tsx diff --git a/web/components/headers/projects.tsx b/web/components/headers/projects.tsx index 4b01c21c1..3e1f778ae 100644 --- a/web/components/headers/projects.tsx +++ b/web/components/headers/projects.tsx @@ -108,7 +108,7 @@ export const ProjectsHeader = observer(() => { className={cn( "ml-auto flex items-center justify-start gap-1 rounded-md border border-transparent bg-custom-background-100 text-custom-text-400 w-0 transition-[width] ease-linear overflow-hidden opacity-0", { - "w-64 px-2.5 py-1.5 border-custom-border-200 opacity-100": isSearchOpen, + "w-30 md:w-64 px-2.5 py-1.5 border-custom-border-200 opacity-100": isSearchOpen, } )} > @@ -135,27 +135,29 @@ export const ProjectsHeader = observer(() => { )} - { - if (!workspaceSlug || val === displayFilters?.order_by) return; - updateDisplayFilters(workspaceSlug, { - order_by: val, - }); - }} - /> - } title="Filters" placement="bottom-end"> - { - if (!workspaceSlug) return; - updateDisplayFilters(workspaceSlug, val); +
+ { + if (!workspaceSlug || val === displayFilters?.order_by) return; + updateDisplayFilters(workspaceSlug, { + order_by: val, + }); }} - memberIds={workspaceMemberIds ?? undefined} /> - + } title="Filters" placement="bottom-end"> + { + if (!workspaceSlug) return; + updateDisplayFilters(workspaceSlug, val); + }} + memberIds={workspaceMemberIds ?? undefined} + /> + +
{isAuthorizedUser && (