Repository navigation
fix(ui): right-align Project detail in new workspace combobox - #11521
Conversation
Match Run on field layout so short provider details like stablyai/orca sit on the far right of the committed Project field instead of next to the name.
Greptile SummaryThis PR adds
Confidence Score: 5/5Safe to merge — a single-class addition with no logic changes and a passing test suite. The fix is a one-word Tailwind addition that corrects a known CSS behaviour: justify-end has no effect on a non-flex span, so text-right is the correct way to right-align its inline text. All 18 unit tests pass and the change is isolated to the committed-selection display overlay. Files Needing Attention: No files require special attention.
|
| Filename | Overview |
|---|---|
| src/renderer/src/components/new-workspace/ProjectCombobox.tsx | Adds text-right to the committed-selection detail span, matching the alignment pattern already used in ProjectOptionRow and the Run on field. |
Reviews (1): Last reviewed commit: "fix(ui): right-align Project detail in n..." | Re-trigger Greptile
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe committed selected project detail container in 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
…ai#11521) Match Run on field layout so short provider details like stablyai/orca sit on the far right of the committed Project field instead of next to the name.
Summary
Right-aligns the Project combobox detail text so it matches the Run on field layout.
Previously, short provider details like
stablyai/orcasat next to the project name with onlygap-2spacing (justify-endalone does nothing on the non-flex single-span detail path). Run on already usedtext-rightso the path sat on the far right. Project now does the same.Screenshots
Before — detail sits next to the name:
After — Project detail right-aligned like Run on:
Full Electron window (dev instance, CDP screenshot):
Test plan
stablyai/orca(or other short detail) sits on the far right of the Project field, matching Run onpnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/new-workspace/ProjectCombobox.test.tsx(18 passed)