Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-609] fix: header text overflow issue in kanban layout (#3848)

guru_sainathe6f33eb26252
diff --git a/web/components/issues/issue-layouts/kanban/default.tsx b/web/components/issues/issue-layouts/kanban/default.tsx
index 7aac11c6fc..3cbab589f1 100644
--- a/web/components/issues/issue-layouts/kanban/default.tsx
+++ b/web/components/issues/issue-layouts/kanban/default.tsx
@@ -101,8 +101,15 @@ const GroupByKanBan: React.FC<IGroupByKanBan> = observer((props) => {
const groupList = showEmptyGroup ? list : groupWithIssues;
- const visibilityGroupBy = (_list: IGroupByColumn) =>
- sub_group_by ? false : kanbanFilters?.group_by.includes(_list.id) ? true : false;
+ const visibilityGroupBy = (_list: IGroupByColumn) => {
+ if (sub_group_by) {
+ if (kanbanFilters?.sub_group_by.includes(_list.id)) return true;
+ return false;
+ } else {
+ if (kanbanFilters?.group_by.includes(_list.id)) return true;
+ return false;
+ }
+ };
const isGroupByCreatedBy = group_by === "created_by";
diff --git a/web/components/issues/issue-layouts/kanban/headers/group-by-card.tsx b/web/components/issues/issue-layouts/kanban/headers/group-by-card.tsx
index 440b379b86..f49af29221 100644
--- a/web/components/issues/issue-layouts/kanban/headers/group-by-card.tsx
+++ b/web/components/issues/issue-layouts/kanban/headers/group-by-card.tsx
@@ -106,13 +106,21 @@ export const HeaderGroupByCard: FC<IHeaderGroupByCard> = observer((props) => {
{icon ? icon : <Circle width={14} strokeWidth={2} />}
</div>
- <div className={`flex items-center gap-1 ${verticalAlignPosition ? `flex-col` : `w-full flex-row`}`}>
+ <div
+ className={`relative overflow-hidden flex items-center gap-1 ${
+ verticalAlignPosition ? `flex-col` : `w-full flex-row`
+ }`}
+ >
<div
- className={`line-clamp-1 font-medium text-custom-text-100 ${verticalAlignPosition ? `vertical-lr` : ``}`}
+ className={`inline-block truncate line-clamp-1 font-medium text-custom-text-100 overflow-hidden ${
+ verticalAlignPosition ? `vertical-lr max-h-[400px]` : ``
+ }`}
>
{title}
</div>
- <div className={`text-sm font-medium text-custom-text-300 ${verticalAlignPosition ? `` : `pl-2`}`}>
+ <div
+ className={`flex-shrink-0 text-sm font-medium text-custom-text-300 ${verticalAlignPosition ? `` : `pl-2`}`}
+ >
{count || 0}
</div>
</div>