Skip to content

fix(ui): prevent horizontal scrollbar from long tool call rows#425

Merged
matt2e merged 1 commit intomainfrom
wide-tool-calls
Mar 20, 2026
Merged

fix(ui): prevent horizontal scrollbar from long tool call rows#425
matt2e merged 1 commit intomainfrom
wide-tool-calls

Conversation

@matt2e
Copy link
Contributor

@matt2e matt2e commented Mar 20, 2026

Summary

  • Adds overflow-x: hidden to .modal-content to prevent horizontal scrollbar when tool call rows are wider than the modal
  • Changes .tool-card overflow from visible to hidden and adds min-width: 0 to .tool-header so long content truncates instead of overflowing

Test plan

  • Open a session with long tool call names/paths and verify no horizontal scrollbar appears
  • Verify tool call content still displays correctly and truncates gracefully

🤖 Generated with Claude Code

Clip tool card overflow and propagate min-width constraints so
tool-args-preview text truncation works correctly through the
flex layout chain.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matt2e matt2e requested review from baxen and wesbillman as code owners March 20, 2026 04:49
@matt2e matt2e merged commit 0871fb6 into main Mar 20, 2026
4 checks passed
@matt2e matt2e deleted the wide-tool-calls branch March 20, 2026 04:52
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 057e54b338

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".


.tool-card {
overflow: visible;
overflow: hidden;

Choose a reason for hiding this comment

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

P2 Badge Restore visible tool-call chevrons

Changing .tool-card to overflow: hidden clips the disclosure chevron on every expandable tool row. .tool-caret is intentionally pulled 8px to the left with margin-left: -8px (SessionModal.svelte:1596-1600), so once the card becomes a clipping container the caret is rendered outside the card and disappears. That removes the main visual cue that a tool call can be expanded/collapsed.

Useful? React with 👍 / 👎.


.modal-content {
flex: 1;
overflow-x: hidden;

Choose a reason for hiding this comment

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

P2 Badge Keep horizontal access for wide markdown content

overflow-x: hidden on .modal-content makes some supported assistant markdown impossible to inspect. This component enables GFM (marked.setOptions({ breaks: true, gfm: true }) at lines 74-75), but within .markdown-content only pre blocks get their own horizontal scroller (SessionModal.svelte:2047-2052). Wide GFM tables and similar blocks currently depend on the modal’s outer x-scroll, so after this change their rightmost columns are clipped with no way to reach them.

Useful? React with 👍 / 👎.

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