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

View File

@@ -951,6 +951,7 @@ function DesktopAgentControlsContent(props: DesktopAgentControlsContentProps) {
onOpenChange={handleThinkingOpenChange}
anchorRef={thinkingAnchorRef}
desktopPlacement="top-start"
desktopMinWidth={200}
renderOption={renderThinkingOption}
/>
</>

View File

@@ -264,6 +264,7 @@ export function AgentModeControl({
onOpenChange={handleOpenChange}
anchorRef={anchorRef}
desktopPlacement="top-start"
desktopMinWidth={260}
header={sheetHeader}
renderOption={renderOption}
/>

View File

@@ -1381,6 +1381,7 @@ function useNewWorkspaceFormStack(input: NewWorkspaceFormStackInput): ReactEleme
open={project.openState}
onOpenChange={project.onOpenChange}
desktopPlacement="bottom-start"
desktopMinWidth={360}
anchorRef={project.anchorRef}
emptyText="No projects available."
renderOption={project.renderOption}
@@ -1401,6 +1402,7 @@ function useNewWorkspaceFormStack(input: NewWorkspaceFormStackInput): ReactEleme
searchable={false}
title="Host"
desktopPlacement="bottom-start"
desktopMinWidth={200}
hostOptionTestID={newWorkspaceHostOptionTestID}
>
<Pressable