From 0ba81a10f1d930c17df025a8d7efcf3c2f3270ae Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Tue, 14 Mar 2023 12:18:14 +0530 Subject: [PATCH] style: made the paddings and text sizes smaller (#433) --- .../components/core/board-view/all-boards.tsx | 2 +- .../core/board-view/board-header.tsx | 8 +-- .../core/board-view/single-issue.tsx | 4 +- .../core/list-view/single-issue.tsx | 10 +-- apps/app/components/cycles/cycles-list.tsx | 4 +- .../components/cycles/single-cycle-card.tsx | 39 ++++++----- .../components/issues/my-issues-list-item.tsx | 12 ++-- .../components/modules/single-module-card.tsx | 66 ++++++------------- apps/app/components/ui/custom-menu.tsx | 2 +- .../components/ui/custom-search-select.tsx | 4 +- apps/app/components/ui/custom-select.tsx | 2 +- .../ui/linear-progress-indicator.tsx | 4 +- apps/app/components/ui/tooltip.tsx | 6 +- .../components/workspace/sidebar-dropdown.tsx | 6 +- .../app/components/workspace/sidebar-menu.tsx | 2 +- apps/app/layouts/app-layout/index.tsx | 2 +- .../projects/[projectId]/modules/index.tsx | 3 +- 17 files changed, 75 insertions(+), 101 deletions(-) diff --git a/apps/app/components/core/board-view/all-boards.tsx b/apps/app/components/core/board-view/all-boards.tsx index 88d303dc7..55517a827 100644 --- a/apps/app/components/core/board-view/all-boards.tsx +++ b/apps/app/components/core/board-view/all-boards.tsx @@ -40,7 +40,7 @@ export const AllBoards: React.FC = ({ <> {groupedByIssues ? (
-
+
{Object.keys(groupedByIssues).map((singleGroup, index) => { const currentState = selectedGroup === "state_detail.name" diff --git a/apps/app/components/core/board-view/board-header.tsx b/apps/app/components/core/board-view/board-header.tsx index 84d421190..8237eb8f6 100644 --- a/apps/app/components/core/board-view/board-header.tsx +++ b/apps/app/components/core/board-view/board-header.tsx @@ -56,13 +56,13 @@ export const BoardHeader: React.FC = ({ >
- {currentState && getStateGroupIcon(currentState.group, "20", "20", bgColor)} + {currentState && getStateGroupIcon(currentState.group, "18", "18", bgColor)}

= ({ ? assignees : addSpaceIfCamelCase(groupTitle)}

- + {groupedByIssues[groupTitle].length}
diff --git a/apps/app/components/core/board-view/single-issue.tsx b/apps/app/components/core/board-view/single-issue.tsx index 795ebbf59..cfb3c4ad7 100644 --- a/apps/app/components/core/board-view/single-issue.tsx +++ b/apps/app/components/core/board-view/single-issue.tsx @@ -24,7 +24,7 @@ import { ViewStateSelect, } from "components/issues/view-select"; // ui -import { ContextMenu, CustomMenu, Tooltip } from "components/ui"; +import { ContextMenu, CustomMenu } from "components/ui"; // icons import { ClipboardDocumentCheckIcon, @@ -233,7 +233,7 @@ export const SingleBoardIssue: React.FC = ({ setContextMenuPosition({ x: e.pageX, y: e.pageY }); }} > -
+
{!isNotAllowed && (
{type && !isNotAllowed && ( diff --git a/apps/app/components/core/list-view/single-issue.tsx b/apps/app/components/core/list-view/single-issue.tsx index 1b6dc23cc..bfbec1db7 100644 --- a/apps/app/components/core/list-view/single-issue.tsx +++ b/apps/app/components/core/list-view/single-issue.tsx @@ -178,7 +178,7 @@ export const SingleListIssue: React.FC = ({
{ e.preventDefault(); setContextMenu(true); @@ -189,21 +189,21 @@ export const SingleListIssue: React.FC = ({ {properties.key && ( - + {issue.project_detail?.identifier}-{issue.sequence_id} )} - {truncateText(issue.name, 50)} + {truncateText(issue.name, 50)} -
+
{properties.priority && ( = ({ ))}
) : ( - + ) ) : ( - + )} diff --git a/apps/app/components/cycles/single-cycle-card.tsx b/apps/app/components/cycles/single-cycle-card.tsx index 01f4f1d00..23279d559 100644 --- a/apps/app/components/cycles/single-cycle-card.tsx +++ b/apps/app/components/cycles/single-cycle-card.tsx @@ -40,7 +40,6 @@ import { CYCLE_CURRENT_AND_UPCOMING_LIST, CYCLE_DRAFT_LIST, CYCLE_ISSUES, - CYCLE_LIST, } from "constants/fetch-keys"; type TSingleStatProps = { @@ -49,7 +48,7 @@ type TSingleStatProps = { handleDeleteCycle: () => void; }; -const stateGroupColours: { +const stateGroupColors: { [key: string]: string; } = { backlog: "#DEE2E6", @@ -231,23 +230,23 @@ export const SingleCycleCard: React.FC = (props) => { cycleIssues && cycleIssues.length > 0 ? (groupedIssues[group].length / cycleIssues.length) * 100 : 0, - color: stateGroupColours[group], + color: stateGroupColors[group], })); return ( -
+
-
+
- - - -

+ + + +

{truncateText(cycle.name, 75)}

- -
- + + + {cycle.is_favorite ? (

-
-
+
+
{cycle.owned_by.avatar && cycle.owned_by.avatar !== "" ? ( = (props) => { )} {cycle.owned_by.first_name}
-
+