forked from github/plane
fix: issue peek overview state select dropdown overflow fix (#2873)
This commit is contained in:
parent
cb922fb113
commit
a3ea7c8f10
@ -37,9 +37,9 @@ export const SidebarStateSelect: React.FC<Props> = ({ value, onChange, disabled
|
|||||||
value: state.id,
|
value: state.id,
|
||||||
query: state.name,
|
query: state.name,
|
||||||
content: (
|
content: (
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2 truncate">
|
||||||
<StateGroupIcon stateGroup={state.group} color={state.color} />
|
<StateGroupIcon stateGroup={state.group} color={state.color} />
|
||||||
{state.name}
|
<span className="truncate">{state.name}</span>
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
}));
|
}));
|
||||||
@ -50,11 +50,11 @@ export const SidebarStateSelect: React.FC<Props> = ({ value, onChange, disabled
|
|||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
options={options}
|
options={options}
|
||||||
customButton={
|
customButton={
|
||||||
<div className="bg-custom-background-80 text-xs rounded px-2.5 py-0.5">
|
<div className="bg-custom-background-80 text-xs rounded px-2.5 py-0.5 max-w-[10rem] truncate">
|
||||||
{selectedOption ? (
|
{selectedOption ? (
|
||||||
<div className="flex items-center gap-1.5 text-left text-custom-text-100">
|
<div className="flex items-center gap-1.5 text-left text-custom-text-100">
|
||||||
<StateGroupIcon stateGroup={selectedOption.group} color={selectedOption.color} />
|
<StateGroupIcon stateGroup={selectedOption.group} color={selectedOption.color} />
|
||||||
{addSpaceIfCamelCase(selectedOption?.name ?? "")}
|
<span className="truncate">{addSpaceIfCamelCase(selectedOption?.name ?? "")}</span>
|
||||||
</div>
|
</div>
|
||||||
) : inboxIssueId ? (
|
) : inboxIssueId ? (
|
||||||
<div className="flex items-center gap-1.5 text-left text-custom-text-100">
|
<div className="flex items-center gap-1.5 text-left text-custom-text-100">
|
||||||
@ -66,7 +66,7 @@ export const SidebarStateSelect: React.FC<Props> = ({ value, onChange, disabled
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
width="min-w-[10rem]"
|
width="min-w-[10rem] max-w-[12rem]"
|
||||||
noChevron
|
noChevron
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user