fix: cycle select dropdown issue layout overflow fix (#3789)

This commit is contained in:
Anmol Singh Bhatia 2024-02-25 22:35:42 +05:30 committed by GitHub
parent 812df59d1d
commit 395098417c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ export const CycleDropdown: React.FC<Props> = observer((props) => {
> >
{!hideIcon && <ContrastIcon className="h-3 w-3 flex-shrink-0" />} {!hideIcon && <ContrastIcon className="h-3 w-3 flex-shrink-0" />}
{BUTTON_VARIANTS_WITH_TEXT.includes(buttonVariant) && ( {BUTTON_VARIANTS_WITH_TEXT.includes(buttonVariant) && (
<span className="flex-grow truncate">{selectedCycle?.name ?? placeholder}</span> <span className="flex-grow truncate max-w-40">{selectedCycle?.name ?? placeholder}</span>
)} )}
{dropdownArrow && ( {dropdownArrow && (
<ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" /> <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />

View File

@ -346,7 +346,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
{/* cycles */} {/* cycles */}
{cycleId === undefined && ( {cycleId === undefined && (
<WithDisplayPropertiesHOC displayProperties={displayProperties} displayPropertyKey="cycle"> <WithDisplayPropertiesHOC displayProperties={displayProperties} displayPropertyKey="cycle">
<div className="h-5"> <div className="h-5 truncate">
<CycleDropdown <CycleDropdown
projectId={issue?.project_id} projectId={issue?.project_id}
value={issue?.cycle_id} value={issue?.cycle_id}