Client sidebar: long nav titles are cut off in the expanded sidebar
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 83/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
Lee packages/client/src/components/layout/nav.tsx e inspecciona tanto la rama de enlace como la de botón de NavLink. Después, compara la barra lateral expandida con el comportamiento del menú desplegable contraído. Revisa los estilos y títulos relevantes de la barra lateral en sidelinks.tsx; el trabajo estará terminado cuando todos los títulos de la vista de escritorio expandida sean legibles y las barras laterales contraída y móvil sigan viéndose bien.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 30
- Forks
- 10
- Merge medio
- 2 d 12 h
- PR fusionados (30 d)
- 276
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Urigo/accounter-fullstack
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Urigo/accounter-fullstack#5302 ·
Los mantenedores suelen responder en 2 días
-
1214 annual-audit-workflow
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Urigo/accounter-fullstack#5257 ·
Los mantenedores suelen responder en 2 días
-
1214 annual-audit-workflow
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Urigo/accounter-fullstack#5256 ·
Los mantenedores suelen responder en 2 días
-
annual-audit-workflow
Dificultad 1/5 1-3 horas Aptitud para principiantes 87/100
Urigo/accounter-fullstack#5252 ·
Los mantenedores suelen responder en 2 días
-
Business-trip attendee mutations throw TypeError instead of a clear error when no row is affectedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Urigo/accounter-fullstack#4917 ·
Los mantenedores suelen responder en 2 días
Todos los issues de Urigo/accounter-fullstack
Issues similares
-
area: integrations documentation priority: P2 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eddiejaoude/StackDash#798 ·
Los mantenedores suelen responder en 1 día
-
bot:ai-assisted component:midnight-js status:untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
midnightntwrk/midnight-js#1790 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
area:vscode bug has repro platform:macos platform:vscode regression
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDAbiertocheck:passed streams:add
Dificultad 1/5 Menos de una hora Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día