fix(app): size iPad selector popovers (#2360)

This commit is contained in:
yz
2026-07-24 00:45:00 +08:00
committed by GitHub
parent 5e47cff58e
commit e8fb9bda6c
3 changed files with 4 additions and 0 deletions
@@ -951,6 +951,7 @@ function DesktopAgentControlsContent(props: DesktopAgentControlsContentProps) {
onOpenChange={handleThinkingOpenChange} onOpenChange={handleThinkingOpenChange}
anchorRef={thinkingAnchorRef} anchorRef={thinkingAnchorRef}
desktopPlacement="top-start" desktopPlacement="top-start"
desktopMinWidth={200}
renderOption={renderThinkingOption} renderOption={renderThinkingOption}
/> />
</> </>
@@ -264,6 +264,7 @@ export function AgentModeControl({
onOpenChange={handleOpenChange} onOpenChange={handleOpenChange}
anchorRef={anchorRef} anchorRef={anchorRef}
desktopPlacement="top-start" desktopPlacement="top-start"
desktopMinWidth={260}
header={sheetHeader} header={sheetHeader}
renderOption={renderOption} renderOption={renderOption}
/> />
@@ -1381,6 +1381,7 @@ function useNewWorkspaceFormStack(input: NewWorkspaceFormStackInput): ReactEleme
open={project.openState} open={project.openState}
onOpenChange={project.onOpenChange} onOpenChange={project.onOpenChange}
desktopPlacement="bottom-start" desktopPlacement="bottom-start"
desktopMinWidth={360}
anchorRef={project.anchorRef} anchorRef={project.anchorRef}
emptyText="No projects available." emptyText="No projects available."
renderOption={project.renderOption} renderOption={project.renderOption}
@@ -1401,6 +1402,7 @@ function useNewWorkspaceFormStack(input: NewWorkspaceFormStackInput): ReactEleme
searchable={false} searchable={false}
title="Host" title="Host"
desktopPlacement="bottom-start" desktopPlacement="bottom-start"
desktopMinWidth={200}
hostOptionTestID={newWorkspaceHostOptionTestID} hostOptionTestID={newWorkspaceHostOptionTestID}
> >
<Pressable <Pressable