Skip to content

Commit

Permalink
style: updated layouts UI in the space app (#2671)
Browse files Browse the repository at this point in the history
* style: updated layouts UI in space

* fix: build error
  • Loading branch information
aaryan610 authored Nov 6, 2023
1 parent a6dea3a commit 1dce72c
Show file tree
Hide file tree
Showing 22 changed files with 56 additions and 379 deletions.
1 change: 0 additions & 1 deletion space/components/icons/index.ts

This file was deleted.

23 changes: 0 additions & 23 deletions space/components/icons/state-group/backlog-state-icon.tsx

This file was deleted.

74 changes: 0 additions & 74 deletions space/components/icons/state-group/cancelled-state-icon.tsx

This file was deleted.

65 changes: 0 additions & 65 deletions space/components/icons/state-group/completed-state-icon.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions space/components/icons/state-group/index.ts

This file was deleted.

73 changes: 0 additions & 73 deletions space/components/icons/state-group/started-state-icon.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions space/components/icons/state-group/state-group-icon.tsx

This file was deleted.

55 changes: 0 additions & 55 deletions space/components/icons/state-group/unstarted-state-icon.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions space/components/icons/types.d.ts

This file was deleted.

4 changes: 3 additions & 1 deletion space/components/issues/board-views/block-state.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ui
import { StateGroupIcon } from "@plane/ui";
// constants
import { issueGroupFilter } from "constants/data";

Expand All @@ -8,7 +10,7 @@ export const IssueBlockState = ({ state }: any) => {
return (
<div className="flex items-center justify-between gap-1 w-full rounded shadow-sm border-[0.5px] border-custom-border-300 duration-300 focus:outline-none px-2.5 py-1 text-xs">
<div className="flex items-center w-full gap-1.5 text-custom-text-200">
<stateGroup.icon />
<StateGroupIcon stateGroup={state.group} color={state.color} />
<div className="text-xs">{state?.name}</div>
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions space/components/issues/board-views/kanban/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { useMobxStore } from "lib/mobx/store-provider";
// components
import { IssueBlockPriority } from "components/issues/board-views/block-priority";
import { IssueBlockState } from "components/issues/board-views/block-state";
import { IssueBlockLabels } from "components/issues/board-views/block-labels";
import { IssueBlockDueDate } from "components/issues/board-views/block-due-date";
// interfaces
import { IIssue } from "types/issue";
Expand Down Expand Up @@ -37,7 +36,7 @@ export const IssueListBlock = observer(({ issue }: { issue: IIssue }) => {
};

return (
<div className="py-3 px-4 h-[118px] flex flex-col gap-1.5 bg-custom-background-100 rounded shadow-custom-shadow-sm border-[0.5px] border-custom-border-200">
<div className="py-2 px-3 flex flex-col gap-1.5 bg-custom-background-100 rounded shadow-custom-shadow-2xs border-[0.5px] border-custom-border-200 space-y-2 text-sm">
{/* id */}
<div className="text-xs text-custom-text-300 break-words">
{projectStore?.project?.identifier}-{issue?.sequence_id}
Expand Down
12 changes: 6 additions & 6 deletions space/components/issues/board-views/kanban/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { observer } from "mobx-react-lite";
import { IIssueState } from "types/issue";
// constants
import { issueGroupFilter } from "constants/data";
// icons
import { StateGroupIcon } from "components/icons";
// ui
import { StateGroupIcon } from "@plane/ui";
// mobx hook
import { useMobxStore } from "lib/mobx/store-provider";
import { RootStore } from "store/root";
Expand All @@ -18,11 +18,11 @@ export const IssueListHeader = observer(({ state }: { state: IIssueState }) => {
if (stateGroup === null) return <></>;

return (
<div className="pb-2 px-2 flex items-center">
<div className="w-4 h-4 flex justify-center items-center flex-shrink-0">
<StateGroupIcon stateGroup={state.group} color={state.color} />
<div className="pb-2 px-2 flex items-center gap-2">
<div className="w-3.5 h-3.5 flex justify-center items-center flex-shrink-0">
<StateGroupIcon stateGroup={state.group} color={state.color} height="14" width="14" />
</div>
<div className="font-semibold text-custom-text-200 capitalize ml-2 mr-3 truncate">{state?.name}</div>
<div className="font-semibold text-custom-text-200 capitalize mr-1 truncate">{state?.name}</div>
<span className="text-custom-text-300 rounded-full flex-shrink-0">
{store.issue.getCountOfIssuesByState(state.id)}
</span>
Expand Down
Loading

0 comments on commit 1dce72c

Please sign in to comment.