Skip to content

fix(web): truncate long project switcher names - #5348

Merged
maria-rcks merged 1 commit into
pingdotgg:mainfrom
FllipEis:philipp/fix-project-switcher-truncation
Aug 5, 2026
Merged

fix(web): truncate long project switcher names#5348
maria-rcks merged 1 commit into
pingdotgg:mainfrom
FllipEis:philipp/fix-project-switcher-truncation

Conversation

@FllipEis

@FllipEis FllipEis commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

What Changed

  • Constrained the active project name in the new-thread headline and truncated long names with an ellipsis.
  • Made project names inside the switcher menu use a constrained block so truncation works correctly.
  • Added title text so the full project name remains available on hover.

This applies to both web and desktop. Mobile uses a separate native project picker and is unchanged.

Why

Long project names overflowed the project switcher and introduced a horizontal scrollbar, breaking the menu layout.

The menu already applied truncation styles, but they were attached to an inline element. Since inline elements do not provide the constrained box required by text-overflow: ellipsis, the project name continued to overflow. The selected project name in the headline was also unconstrained.

Verification

  • vp lint apps/web/src/components/chat/DraftHeroHeadline.tsx --report-unused-disable-directives
  • vp fmt --check apps/web/src/components/chat/DraftHeroHeadline.tsx
  • vp run --filter @t3tools/web typecheck
  • git diff --check

UI Changes

Before

T3 Code (Nightly) 2026-08-04 at 19 16 22@2x T3 Code (Nightly) 2026-08-04 at 19 16 27@2x

After

T3 Code (Dev) 2026-08-04 at 19 54 10@2x

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Model and harness: GPT-5.6 Sol via T3 Code.


Note

Cursor Bugbot is generating a summary for commit e8b399b. Configure here.

Note

Truncate long project names in the project switcher with tooltip fallback

Long project names in DraftHeroHeadline now truncate at a max width of max-w-64, and the full name is shown via the browser's native tooltip (title attribute) on both the trigger and menu items. Also removes the cursor-pointer class from the menu trigger.

Macroscope summarized e8b399b.

@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: afe11959-949d-4223-b0fc-dd1e3afce876

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Aug 4, 2026
@macroscopeapp

macroscopeapp Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved e8b399b

This PR contains purely CSS/styling changes to truncate long project names and add hover tooltips. No logic or runtime behavior changes - just visual presentation adjustments that are low-risk and self-contained.

You can customize Macroscope's approvability policy. Learn more.

@maria-rcks
maria-rcks merged commit 3c5bdb8 into pingdotgg:main Aug 5, 2026
17 checks passed
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Aug 5, 2026
## What's Changed
* fix(mcp): unblock Kimi models in OpenCode with preview tools by @hwanseoc in pingdotgg/t3code#5128
* fix(web): clear main branch lint warnings by @t3dotgg in pingdotgg/t3code#5384
* fix(mobile): preserve grouped project workspaces by @shivamhwp in pingdotgg/t3code#4642
* fix(mobile): prevent Android thread search crash by @shivamhwp in pingdotgg/t3code#5386
* fix(web): truncate long project switcher names by @FllipEis in pingdotgg/t3code#5348
* fix(mobile): avoid double dividers between thread sections by @shivamhwp in pingdotgg/t3code#5391
* fix(web): keep the composer command menu anchored to the composer by @StiensWout in pingdotgg/t3code#5336
* fix(web): restore terminal link hover styles by @StiensWout in pingdotgg/t3code#5382
* fix(ci): isolate releases from shared API rate limits by @t3dotgg in pingdotgg/t3code#5394


**Full Changelog**: pingdotgg/t3code@v0.0.32-nightly.20260805.1002...v0.0.32-nightly.20260805.1005

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.32-nightly.20260805.1005
cursor Bot pushed a commit to aaditagrawal/t3code that referenced this pull request Aug 6, 2026
cursor Bot pushed a commit to aaditagrawal/t3code that referenced this pull request Aug 6, 2026
cursor Bot pushed a commit to aaditagrawal/t3code that referenced this pull request Aug 6, 2026
cursor Bot pushed a commit to aaditagrawal/t3code that referenced this pull request Aug 6, 2026
cursor Bot pushed a commit to aaditagrawal/t3code that referenced this pull request Aug 6, 2026
cursor Bot added a commit to aaditagrawal/t3code that referenced this pull request Aug 6, 2026
…inal-polish-63f7

sync: port upstream terminal font reliability, late UI polish, and faster post-update reconnect (pingdotgg#5348pingdotgg#5444)
vortechron pushed a commit to vortechron/void that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants