style: kanban dropdowns, github integration loaders
This commit is contained in:
parent
69e8b504de
commit
b4c4271f66
12 changed files with 91 additions and 60 deletions
|
|
@ -23,6 +23,8 @@ import projectService from "services/project.service";
|
|||
// ui
|
||||
import { CustomMenu, EmptySpace, EmptySpaceItem, Spinner } from "components/ui";
|
||||
import { BreadcrumbItem, Breadcrumbs } from "components/breadcrumbs";
|
||||
// helpers
|
||||
import { truncateText } from "helpers/string.helper";
|
||||
// types
|
||||
import { CycleIssueResponse, UserAuth } from "types";
|
||||
// fetch-keys
|
||||
|
|
@ -135,7 +137,7 @@ const SingleCycle: React.FC<UserAuth> = (props) => {
|
|||
label={
|
||||
<>
|
||||
<CyclesIcon className="h-3 w-3" />
|
||||
{cycleDetails?.name}
|
||||
{cycleDetails?.name && truncateText(cycleDetails.name, 40)}
|
||||
</>
|
||||
}
|
||||
className="ml-1.5"
|
||||
|
|
@ -147,7 +149,7 @@ const SingleCycle: React.FC<UserAuth> = (props) => {
|
|||
renderAs="a"
|
||||
href={`/${workspaceSlug}/projects/${activeProject?.id}/cycles/${cycle.id}`}
|
||||
>
|
||||
{cycle.name}
|
||||
{truncateText(cycle.name, 40)}
|
||||
</CustomMenu.MenuItem>
|
||||
))}
|
||||
</CustomMenu>
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ import { ModuleDetailsSidebar } from "components/modules";
|
|||
// ui
|
||||
import { CustomMenu, EmptySpace, EmptySpaceItem, Spinner } from "components/ui";
|
||||
import { BreadcrumbItem, Breadcrumbs } from "components/breadcrumbs";
|
||||
// helpers
|
||||
import { truncateText } from "helpers/string.helper";
|
||||
// types
|
||||
import { IModule, ModuleIssueResponse, UserAuth } from "types";
|
||||
|
||||
|
|
@ -130,7 +132,7 @@ const SingleModule: React.FC<UserAuth> = (props) => {
|
|||
label={
|
||||
<>
|
||||
<RectangleGroupIcon className="h-3 w-3" />
|
||||
{moduleDetails?.name}
|
||||
{moduleDetails?.name && truncateText(moduleDetails.name, 40)}
|
||||
</>
|
||||
}
|
||||
className="ml-1.5"
|
||||
|
|
@ -142,7 +144,7 @@ const SingleModule: React.FC<UserAuth> = (props) => {
|
|||
renderAs="a"
|
||||
href={`/${workspaceSlug}/projects/${projectId}/modules/${module.id}`}
|
||||
>
|
||||
{module.name}
|
||||
{truncateText(module.name, 40)}
|
||||
</CustomMenu.MenuItem>
|
||||
))}
|
||||
</CustomMenu>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue