Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

fix(site): remove hardcoded max-width on task display name in sidebar#20934

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
david-fraley wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromfix/task-display-name-truncation

Conversation

@david-fraley
Copy link
Collaborator

Description

This PR fixes the task display name truncation issue in the sidebar where text was being unnecessarily ellipsized even when there was plenty of available space.

Root Cause

PR#20918 added a hardcodedmax-w-[220px] constraint to the task display name span. This was too restrictive given the sidebar's fixed width of 256px (w-64), causing unnecessary truncation.

Changes

  • Removedmax-w-[220px] constraint from task display name span
  • Removedblock class (not needed in flex container)
  • Kepttruncate class for genuine overflow cases
  • Let flex container naturally calculate available space

Testing

  • ✅ Linting passed (pnpm lint)
  • ✅ Formatting passed (pnpm format)
  • ✅ TypeScript compilation successful
  • ✅ Existing Storybook story "Display Name Different Lengths" validates behavior

Visual Impact

Task display names now use the full available width (~220-230px depending on spacing) before truncating, while maintaining:

  • Fixed sidebar width of 256px
  • Proper truncation with ellipsis for genuinely long names
  • Correct spacing for status icon and dropdown menu

Risk Assessment

Low risk: Single-line CSS change affecting only visual presentation.

Fixes#20932

🤖 Generated withClaude Code

Remove the `max-w-[220px]` constraint from the task display name spanin the sidebar. This constraint was causing unnecessary truncation evenwhen there was available space.The sidebar has a fixed width of 256px (w-64), and the flex containeralready handles spacing correctly. By removing the arbitrary max-widthand keeping just the `truncate` class, the text now uses all availablespace in the flex container before truncating.Also removed the `block` class as it's not needed in a flex container.Fixes#20932🤖 Generated with [Claude Code](https://claude.com/claude-code)Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

@david-fraleydavid-fraley

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

bug: agentapi chat UI has insufficient minimum width causing text to wrap

2 participants

@david-fraley

[8]ページ先頭

©2009-2025 Movatter.jp