Merge pull request #6743 from menloresearch/chore/dropdown-submenu-scrollable

chore: make dropdown sub menu assign projects scrollable
This commit is contained in:
Faisal Amir 2025-10-07 13:36:01 +07:00 committed by GitHub
commit dabc49567c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,7 +205,7 @@ const SortableItem = memo(
}}
/>
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-44">
<DropdownMenuContent side="bottom" align="end" className="min-w-44">
{thread.isFavorite ? (
<DropdownMenuItem
onClick={(e) => {
@ -239,7 +239,7 @@ const SortableItem = memo(
<IconFolder size={16} />
<span>{t('common:projects.addToProject')}</span>
</DropdownMenuSubTrigger>
<DropdownMenuSubContent>
<DropdownMenuSubContent className="max-h-60 min-w-44 overflow-y-auto">
{availableProjects.length === 0 ? (
<DropdownMenuItem disabled>
<span className="text-left-panel-fg/50">