From 98c74537418d92c3f1d58596bb92d7fdd0e35696 Mon Sep 17 00:00:00 2001
From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com>
Date: Tue, 1 Aug 2023 14:16:43 +0530
Subject: [PATCH] style: view dropdown (#1742)
---
.../core/filters/issues-view-filter.tsx | 133 +++++++++---------
1 file changed, 70 insertions(+), 63 deletions(-)
diff --git a/apps/app/components/core/filters/issues-view-filter.tsx b/apps/app/components/core/filters/issues-view-filter.tsx
index c1861c2c1..ca2ea59f7 100644
--- a/apps/app/components/core/filters/issues-view-filter.tsx
+++ b/apps/app/components/core/filters/issues-view-filter.tsx
@@ -181,78 +181,85 @@ export const IssuesFilterView: React.FC = () => {
<>
Group by
-
option.key === groupByProperty)
- ?.name ?? "Select"
- }
- className="w-28"
- buttonClassName="w-full"
- >
- {GROUP_BY_OPTIONS.map((option) => {
- if (issueView === "kanban" && option.key === null) return null;
- if (option.key === "project") return null;
+
+ option.key === groupByProperty)
+ ?.name ?? "Select"
+ }
+ className="!w-full"
+ buttonClassName="w-full"
+ >
+ {GROUP_BY_OPTIONS.map((option) => {
+ if (issueView === "kanban" && option.key === null) return null;
+ if (option.key === "project") return null;
- return (
- setGroupByProperty(option.key)}
- >
- {option.name}
-
- );
- })}
-
+ return (
+ setGroupByProperty(option.key)}
+ >
+ {option.name}
+
+ );
+ })}
+
+
Order by
-
option.key === orderBy)?.name ??
- "Select"
- }
- className="w-28"
- buttonClassName="w-full"
- >
- {ORDER_BY_OPTIONS.map((option) =>
- groupByProperty === "priority" && option.key === "priority" ? null : (
- {
- setOrderBy(option.key);
- }}
- >
- {option.name}
-
- )
- )}
-
+
+ option.key === orderBy)?.name ??
+ "Select"
+ }
+ className="!w-full"
+ buttonClassName="w-full"
+ >
+ {ORDER_BY_OPTIONS.map((option) =>
+ groupByProperty === "priority" &&
+ option.key === "priority" ? null : (
+ {
+ setOrderBy(option.key);
+ }}
+ >
+ {option.name}
+
+ )
+ )}
+
+
>
)}
Issue type
-
option.key === filters.type)
- ?.name ?? "Select"
- }
- className="w-28"
- buttonClassName="w-full"
- >
- {FILTER_ISSUE_OPTIONS.map((option) => (
-
- setFilters({
- type: option.key,
- })
- }
- >
- {option.name}
-
- ))}
-
+
+ option.key === filters.type)
+ ?.name ?? "Select"
+ }
+ className="!w-full"
+ buttonClassName="w-full"
+ >
+ {FILTER_ISSUE_OPTIONS.map((option) => (
+
+ setFilters({
+ type: option.key,
+ })
+ }
+ >
+ {option.name}
+
+ ))}
+
+
{issueView !== "calendar" && issueView !== "spreadsheet" && (