Skip to content

Mobile model selector placement and alignment#783

Merged
bdart merged 1 commit into
mainfrom
feature/mobile-model-selector-left-align
Jun 27, 2026
Merged

Mobile model selector placement and alignment#783
bdart merged 1 commit into
mainfrom
feature/mobile-model-selector-left-align

Conversation

@bdart

@bdart bdart commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

This pull request updates the chat input UI to improve the placement and alignment of the ModelSelector component, particularly for mobile and add-in layouts where controls are collapsed. The changes ensure that the model selector appears in a consistent and intuitive location and that its dropdown menu aligns correctly depending on its position.

UI improvements for model selector placement and alignment:

  • Added a showModelSelector variable to centralize logic for when the ModelSelector should be rendered, ensuring it appears in the correct control group depending on layout and mode (ChatInput.tsx).
  • Updated rendering logic to place the ModelSelector in the left control group (with left alignment) when the unified mobile menu is used, and in the right group otherwise (ChatInput.tsx). [1] [2]

Component flexibility and alignment:

  • Added a new align prop to ModelSelector (defaulting to "right"), allowing its dropdown menu to align left or right based on context, and passed this prop through to the underlying DropdownMenu (ModelSelector.tsx). [1] [2] [3]

@bdart bdart force-pushed the feature/mobile-model-selector-left-align branch from 159401c to 2952625 Compare June 27, 2026 15:11
@bdart bdart merged commit 74f7413 into main Jun 27, 2026
29 checks passed
@bdart bdart deleted the feature/mobile-model-selector-left-align branch June 27, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant