fix: Update project name styling in chat header for better readability#691
fix: Update project name styling in chat header for better readability#691tyler-builds wants to merge 1 commit intopingdotgg:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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. Comment |
What Changed
I added
justify-startso it only truncates the right side, removed themax-w-28so it can grow if there is space, and changedshrink-0toshrinkso if the screen does get small it shrinks with everything else (like the thread title).Fixes #713
Why
If a project name was long enough, it would be cut off even if there was room to see the whole thing. Also, due to the default styling for the Badge component, it would truncate both the left and right side leaving only the middle to be read.
UI Changes
Before (large screen)

After (large screen)

Before (small screen)

Before (small screen)

Checklist
Note
Adjust ChatHeader project name Badge flex styling to improve readability in ChatView.tsx
Update the
ChatHeaderBadge showingactiveProjectName: removemax-w-28andshrink-0; addjustify-startandshrinkin ChatView.tsx.📍Where to Start
Start with the
ChatHeadercomponent in ChatView.tsx.Macroscope summarized 6f349e5.