Client sidebar: long nav titles are cut off in the expanded sidebar
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 83/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Read packages/client/src/components/layout/nav.tsx and inspect both the NavLink link and button branches, then compare the expanded sidebar with the collapsed dropdown behavior. Check the relevant sidebar styles and titles in sidelinks.tsx; done when every expanded desktop title is readable and the collapsed and mobile sidebars still look right.
Written by the indexing model from the issue text.
Description
Problem
In the expanded desktop sidebar (w-[240px], packages/client/src/components/layout/sidebar.tsx), nav links whose title is longer than the available width are cut off at the sidebar's right edge instead of wrapping or shortening. Seen after #4913 regrouped the menu, but the behavior predates it.
Titles that currently get cut off include:
- Tax & Filings → "Corporate Tax Ruling Compliance Report", "Securities Semi-Annual Report", "Generate Uniform Files", "CPI Linkage Calculator"
- Reports → "Profit and Loss Report", "Transactions Balance", "Annual Revenue Report"
- Documents → "Issue Monthly Documents"
- Charts → "Monthly Income/Expense"
- Year-End Closing → "Accountant Approvals"
Sub-links are indented (ml-8 on the <li> plus px-2 and the icon), which leaves roughly 130px for the title.
The collapsed (icon) mode is not affected: its dropdown items use max-w-52 text-wrap and wrap correctly.
Where
packages/client/src/components/layout/nav.tsx:NavLink(both the<Link>and the action<button>branches) passestext-wraptogether withbuttonVariants({ variant: 'ghost', size: 'sm' }). The button variants includewhitespace-nowrap, which most likely wins overtext-wrap, so the title never wraps. Not yet confirmed.packages/client/src/components/layout/sidelinks.tsx: the titles themselves.
Possible fixes (pick one or combine)
- Let sub-link titles wrap: override
whitespace-nowrap(e.g.whitespace-normal) inNavLink, and let the row grow past the fixedh-10/h-12height (e.g.h-auto min-h-10 py-2) so wrapped text isn't clipped vertically. - Shorten menu titles where the group already gives context, e.g. "Tax Ruling Compliance", "Securities Semi-Annual", "Profit and Loss", "Annual Revenue". The page title (route
handle.titleinpackages/client/src/router/config.tsx) can keep the full name. Note thatheader.tsxtakes its title from the sidelinks entry, so it would show the short name too. - Truncate with an ellipsis (
truncate) and show the full title in a tooltip.
Done when
- Every link title in the expanded desktop sidebar is fully readable (wrapped, shortened, or ellipsized with a tooltip) and nothing is clipped at the sidebar edge.
- Collapsed mode and the mobile sidebar (
mobile-sidebar.tsx) still look right.
- Dominant language
- TypeScript
- Stars
- 30
- Forks
- 10
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 276
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Urigo/accounter-fullstack
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Urigo/accounter-fullstack#5302 ·
Maintainers usually reply within 2 days
-
1214 annual-audit-workflow
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Urigo/accounter-fullstack#5257 ·
Maintainers usually reply within 2 days
-
1214 annual-audit-workflow
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Urigo/accounter-fullstack#5256 ·
Maintainers usually reply within 2 days
-
annual-audit-workflow
Difficulty 1/5 1-3 hours Newbie friendliness 87/100
Urigo/accounter-fullstack#5252 ·
Maintainers usually reply within 2 days
-
Business-trip attendee mutations throw TypeError instead of a clear error when no row is affectedOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Urigo/accounter-fullstack#4917 ·
Maintainers usually reply within 2 days
All issues in Urigo/accounter-fullstack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area:vscode bug has repro platform:macos platform:vscode regression
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDOpencheck:passed streams:add
Difficulty 1/5 Under an hour Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
effort/l priority/p1 risk/high triage/core
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
iflytek/skillhub#1188 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Fission-AI/OpenSpec#2337 ·
Maintainers usually reply within 1 day