Skip to content

Fixes Single Tab Being Hidden#455

Open
IdoLeshkowitz wants to merge 1 commit into
Amazon-Q-Developer:mainfrom
IdoLeshkowitz:fix-single-tab
Open

Fixes Single Tab Being Hidden#455
IdoLeshkowitz wants to merge 1 commit into
Amazon-Q-Developer:mainfrom
IdoLeshkowitz:fix-single-tab

Conversation

@IdoLeshkowitz

Copy link
Copy Markdown

Problem

When maxTabs: 1 is configured, the chat content doesn't display. This occurs because the CSS selector for showing chat wrappers depends on .mynah-nav-tabs-wrapper[selected-tab], which is not rendered in single-tab mode.

Solution

  • Set selected-tab attribute directly on .mynah-ui-tab-contents-wrapper for both single and multi-tab modes
  • Updated CSS selector in chat-wrapper.ts to target .mynah-ui-tab-contents-wrapper[selected-tab] instead of requiring .mynah-nav-tabs-wrapper
  • Added listener to update the attribute when tabs change

Tests

  • I have tested this change on VSCode
  • I have tested this change on JetBrains
  • I have added/updated the documentation (if applicable)

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@IdoLeshkowitz
IdoLeshkowitz marked this pull request as ready for review November 22, 2025 18:40
@IdoLeshkowitz
IdoLeshkowitz requested a review from a team as a code owner November 22, 2025 18:40
@IdoLeshkowitz IdoLeshkowitz changed the title ensuring that a single tab will be visible Fixes Single Tab Being Hidden Nov 22, 2025
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