Skip to content

Commit

Permalink
fix: issue sidebar label overflow (#3788)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolsinghbhatia authored Feb 25, 2024
1 parent 3950984 commit 31ebecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/components/issues/issue-detail/label/label-list-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const LabelListItem: FC<TLabelListItem> = (props) => {
return (
<div
key={labelId}
className={`transition-all relative flex items-center gap-1 border border-custom-border-100 rounded-full text-xs p-0.5 px-1 group ${
className={`transition-all relative flex items-center gap-1 truncate border border-custom-border-100 rounded-full text-xs p-0.5 px-1 group ${
!disabled ? "cursor-pointer hover:border-red-500/50 hover:bg-red-500/20" : "cursor-not-allowed"
} `}
onClick={handleLabel}
Expand All @@ -46,7 +46,7 @@ export const LabelListItem: FC<TLabelListItem> = (props) => {
backgroundColor: label.color ?? "#000000",
}}
/>
<div className="flex-shrink-0">{label.name}</div>
<div className="truncate">{label.name}</div>
{!disabled && (
<div className="flex-shrink-0">
<X className="transition-all h-2.5 w-2.5 group-hover:text-red-500" />
Expand Down

0 comments on commit 31ebecb

Please sign in to comment.