Skip to content

Fix duplicate panel title and clipped toolbar buttons - #23

Closed
DaveTseng2019 wants to merge 1 commit into
firish:mainfrom
DaveTseng2019:fix/panel-title-and-button-wrap
Closed

Fix duplicate panel title and clipped toolbar buttons#23
DaveTseng2019 wants to merge 1 commit into
firish:mainfrom
DaveTseng2019:fix/panel-title-and-button-wrap

Conversation

@DaveTseng2019

Copy link
Copy Markdown

Summary

  • Removed the redundant "Claude Code" text in the panel body — the tool window's own Caption already shows it in the tab.
  • Changed the Launch Claude Code / External console toolbar from a fixed-layout DockPanel+StackPanel to a WrapPanel, so the buttons wrap to a new line instead of getting clipped when the panel is docked narrower than they fit (matches the pattern already used for the checkbox row below).

Test plan

  • MSBuild.exe ClaudeCodeVS.csproj /t:Build /p:Configuration=Release — clean build (only pre-existing nullable warnings)
  • Verified visually in the experimental instance: floated the panel at 600px (buttons on one row, no duplicate title) and 300px (buttons wrap onto multiple lines, none clipped)

🤖 Generated with Claude Code

The tool window's own Caption already shows "Claude Code" in the tab, so
the panel's own header duplicated it. The Launch/External console buttons
also got clipped instead of wrapping when the panel was docked narrower
than they fit, unlike the checkbox row below them.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 7, 2026 02:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the Visual Studio tool window UI by removing a duplicated “Claude Code” title inside the panel content (since the tool window tab caption already provides it) and by making the toolbar buttons wrap instead of being clipped in narrow docked layouts.

Changes:

  • Removed the redundant “Claude Code” TextBlock from the panel header, leaving the status pill + endpoint line.
  • Replaced the fixed-layout DockPanel/StackPanel toolbar with a single WrapPanel so all four buttons remain accessible at narrow widths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DaveTseng2019

Copy link
Copy Markdown
Author

這個 PR 的內容已經被 #24 取代(同一個分支,追加了右鍵選單功能並修完 Copilot review 意見),麻煩直接看 #24,這邊可以維持 closed。

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.

2 participants