Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cjh-store
Copy link

@cjh-store cjh-store commented Nov 14, 2025

  • Add responsive toolbar with container query (hide elements at ≤340px)
  • Remove unnecessary padding for better message alignment
  • Improve assistant message dot visibility with adaptive color
  • Update .gitignore to exclude .cursor directory

Summary by Sourcery

Improve toolbar responsiveness with container queries, refine layout spacing and assistant message dot contrast, and update .gitignore rules

New Features:

  • Add container-query–based responsive toolbar that hides elements at widths ≤340px

Enhancements:

  • Reset body margins and padding and remove excess padding in tool message wrapper for improved layout alignment
  • Adjust assistant message dot color with color-mix for better visibility
  • Mark toolbar buttons and token indicator percentage as responsive to container queries

Chores:

  • Update .gitignore to exclude the .cursor directory

- Add responsive toolbar with container query (hide elements at ≤340px)
- Remove unnecessary padding for better message alignment
- Improve assistant message dot visibility with adaptive color
- Update .gitignore to exclude .cursor directory
@sourcery-ai
Copy link

sourcery-ai bot commented Nov 14, 2025

Reviewer's Guide

This PR enhances UI responsiveness and layout by implementing a toolbar container query with data-responsive attributes for narrow screens, removes excess padding in tool message wrappers for cleaner alignment, adjusts the assistant message dot to use adaptive coloring for better contrast, and updates .gitignore to exclude the .cursor directory.

Class diagram for updated ButtonArea and TokenIndicator components

classDiagram
  class ButtonArea {
    +handleThinkingToggle()
    +data-responsive="hide-small" (on action buttons)
  }
  class TokenIndicator {
    +formattedPercentage
    +data-responsive="hide-small" (on progress-text span)
  }
Loading

Class diagram for updated ToolMessageWrapper and AssistantMessage components

classDiagram
  class ToolMessageWrapper {
    -padding: 0px 8px
    +padding: 0px
  }
  class AssistantMessage {
    -color: var(--vscode-input-border) (dot)
    +color: color-mix(in srgb, var(--vscode-foreground) 60%, transparent) (dot)
  }
Loading

File-Level Changes

Change Details Files
Implement responsive toolbar layout with container queries
  • Reset global body margin and padding
  • Define toolbar container query to hide elements tagged hide-small at ≤340px
  • Annotate toolbar buttons and token indicator with data-responsive=hide-small
  • Add container-type and container-name to toolbar container style
src/webview/src/styles/claude-theme.css
src/webview/src/components/ButtonArea.vue
src/webview/src/components/TokenIndicator.vue
Remove extra padding in tool message wrapper
  • Change wrapper padding from 0px 8px to 0px
src/webview/src/components/Messages/blocks/tools/common/ToolMessageWrapper.vue
Enhance assistant message dot visibility with adaptive color
  • Replace fixed input-border color with a color-mix of foreground and transparency
src/webview/src/components/Messages/AssistantMessage.vue
Update gitignore to exclude .cursor directory
  • Add .cursor directory to ignore patterns
.gitignore

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes - here's some feedback:

  • Consider scoping the global body reset to the webview container only, as resetting <body> might unintentionally override host styles or future layout rules.
  • Since CSS container queries aren’t supported in all Electron/VSCode versions, add a fallback or feature-detect strategy to avoid layout breakage in unsupported environments.
  • Using !important for hiding toolbar elements could lead to specificity wars; try a more specific selector or leverage utility classes instead.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Consider scoping the global body reset to the webview container only, as resetting `<body>` might unintentionally override host styles or future layout rules.
- Since CSS container queries aren’t supported in all Electron/VSCode versions, add a fallback or feature-detect strategy to avoid layout breakage in unsupported environments.
- Using `!important` for hiding toolbar elements could lead to specificity wars; try a more specific selector or leverage utility classes instead.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

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