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.

fix: cycle labels overflow issue (#6526)

Vamsi Krishna0deec92d914f
diff --git a/web/core/components/cycles/active-cycle/cycle-stats.tsx b/web/core/components/cycles/active-cycle/cycle-stats.tsx
index 44d7b595f4..8c0ec14a31 100644
--- a/web/core/components/cycles/active-cycle/cycle-stats.tsx
+++ b/web/core/components/cycles/active-cycle/cycle-stats.tsx
@@ -315,14 +315,14 @@ export const ActiveCycleStats: FC<ActiveCycleStatsProps> = observer((props) => {
<SingleProgressStats
key={label.label_id ?? `no-label-${index}`}
title={
- <div className="flex items-center gap-2">
+ <div className="flex items-center gap-2 truncate">
<span
- className="block h-3 w-3 rounded-full"
+ className="block h-3 w-3 rounded-full flex-shrink-0"
style={{
backgroundColor: label.color ?? "#000000",
}}
/>
- <span className="text-xs">{label.label_name ?? "No labels"}</span>
+ <span className="text-xs text-ellipsis truncate">{label.label_name ?? "No labels"}</span>
</div>
}
completed={label.completed_issues}
diff --git a/web/core/components/cycles/analytics-sidebar/progress-stats.tsx b/web/core/components/cycles/analytics-sidebar/progress-stats.tsx
index 069ccb2fff..63203ffdec 100644
--- a/web/core/components/cycles/analytics-sidebar/progress-stats.tsx
+++ b/web/core/components/cycles/analytics-sidebar/progress-stats.tsx
@@ -135,14 +135,14 @@ export const LabelStatComponent = observer((props: TLabelStatComponent) => {
<SingleProgressStats
key={label.id}
title={
- <div className="flex items-center gap-2">
+ <div className="flex items-center gap-2 truncate">
<span
- className="block h-3 w-3 rounded-full"
+ className="block h-3 w-3 rounded-full flex-shrink-0"
style={{
backgroundColor: label.color ?? "transparent",
}}
/>
- <span className="text-xs">{label.title ?? "No labels"}</span>
+ <span className="text-xs text-ellipsis truncate">{label.title ?? "No labels"}</span>
</div>
}
completed={label.completed}