Skip to content

Commit 2a1452d

Browse files
committed
fix(files): nest both type groups so neither is hidden by the menu cap
1 parent 3131f78 commit 2a1452d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/files

apps/sim/app/workspace/[workspaceId]/files/files.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,16 @@ const MIME_TYPE_LABELS: Record<string, string> = {
188188
'application/vnd.openxmlformats-officedocument.presentationml.presentation': 'PowerPoint',
189189
}
190190

191-
/** Hoisted: derived from a frozen registry, so there is nothing to rebuild per render. */
191+
/**
192+
* Both groups are nested behind their own submenu rather than one being listed inline. Menus cap at
193+
* a fixed height, and a flat document list plus a Code entry overflows it — which would push the
194+
* entry gating every code type out of sight on open. Two rows always fit.
195+
*
196+
* Hoisted: derived from a frozen registry, so there is nothing to rebuild per render.
197+
*/
192198
const TEXT_FILE_TYPE_MENU_GROUPS: DropdownRadioGroup[] = [
193199
{
200+
submenuLabel: 'Document',
194201
items: SELECTABLE_TEXT_FILE_TYPES.filter((type) => type.group === 'document').map((type) => ({
195202
id: type.id,
196203
label: type.label,

0 commit comments

Comments
 (0)