Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: ensure consistent left-side submenu positioning#434

Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/submenu-position-consistencybreaking-brake/cc-wf-studio:fix/submenu-position-consistencyCopy head branch name to clipboard
Jan 13, 2026
Merged

fix: ensure consistent left-side submenu positioning#434
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/submenu-position-consistencybreaking-brake/cc-wf-studio:fix/submenu-position-consistencyCopy head branch name to clipboard

Conversation

@breaking-brake
Copy link
Copy Markdown
Owner

Problem

In non-Focus Mode, the SlashCommandOptions dropdown submenus display inconsistently - some open on the right side, others on the left side.

Current Behavior

Submenu Position
Allowed Tools ❌ Right
Model ❌ Right
Hooks ✅ Left
Context ✅ Left

Expected Behavior

All submenus should open on the same side (left) for consistency.

Solution

Add collisionPadding={{ right: 300 }} to all DropdownMenu.SubContent components.

This forces Radix UI's collision detection to determine there's insufficient space on the right, causing all submenus to consistently open on the left side.

Technical Details

  • Radix UI intentionally omits side prop from SubContent (confirmed via TypeScript types)
  • Available positioning props: sideOffset, collisionPadding, collisionBoundary, avoidCollisions
  • Using collisionPadding is the recommended approach to influence positioning behavior

Changes

File: src/webview/src/components/toolbar/SlashCommandOptionsDropdown.tsx

Added collisionPadding={{ right: 300 }} to 5 SubContent components:

  • Allowed Tools (L302)
  • Model (L429)
  • Hooks (L521)
  • Context (L617)
  • HookTypeSubMenu (L753)

Testing

  • Manual E2E testing in non-Focus Mode
  • Manual E2E testing in Focus Mode
  • All submenus open consistently on the left side

Fixes #433

🤖 Generated with Claude Code

- Add collisionPadding={{ right: 300 }} to all SubContent components
- Forces Radix UI collision detection to open submenus on the left
- Fixes #433

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@breaking-brake breaking-brake merged commit 0679f7d into main Jan 13, 2026
3 checks passed
@breaking-brake breaking-brake deleted the fix/submenu-position-consistency branch January 13, 2026 00:14
@breaking-brake breaking-brake mentioned this pull request Jan 13, 2026
braking-brake-semantic-release Bot pushed a commit that referenced this pull request Jan 13, 2026
## [3.14.3](v3.14.2...v3.14.3) (2026-01-13)

### Bug Fixes

* ensure consistent left-side submenu positioning ([#434](#434)) ([0679f7d](0679f7d)), closes [#433](#433)

### Improvements

* add disable-model-invocation configuration UI for Slash Command export ([#443](#443)) ([8eac0a0](8eac0a0))
* reorganize SlashCommandOptions dropdown and add help link ([#444](#444)) ([d39a702](d39a702))
@braking-brake-semantic-release
Copy link
Copy Markdown

🎉 This PR is included in version 3.14.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: SlashCommandOptions submenu position inconsistency in non-Focus Mode

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.