Client sidebar: long nav titles are cut off in the expanded sidebar
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 83/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
packages/client/src/components/layout/nav.tsx を読み、NavLink のリンク分岐とボタン分岐の両方を確認してから、展開されたサイドバーと折りたたまれたドロップダウンの動作を比較してください。sidelinks.tsx の関連するサイドバーのスタイルとタイトルを確認してください。展開されたデスクトップ表示のタイトルがすべて読みやすく、折りたたまれたサイドバーとモバイルのサイドバーも適切な見た目であれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 30
- フォーク
- 10
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 276
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Urigo/accounter-fullstack のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Urigo/accounter-fullstack#5302 ·
メンテナーはふだん 2 日以内に返信
-
1214 annual-audit-workflow
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Urigo/accounter-fullstack#5257 ·
メンテナーはふだん 2 日以内に返信
-
1214 annual-audit-workflow
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
Urigo/accounter-fullstack#5256 ·
メンテナーはふだん 2 日以内に返信
-
annual-audit-workflow
難易度 1/5 1〜3時間 初心者へのやさしさ 87/100
Urigo/accounter-fullstack#5252 ·
メンテナーはふだん 2 日以内に返信
-
Business-trip attendee mutations throw TypeError instead of a clear error when no row is affectedオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Urigo/accounter-fullstack#4917 ·
メンテナーはふだん 2 日以内に返信
Urigo/accounter-fullstack の issue をすべて見る
似ている issue
-
area: integrations documentation priority: P2 size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eddiejaoude/StackDash#798 ·
メンテナーはふだん 1 日以内に返信
-
bot:ai-assisted component:midnight-js status:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
midnightntwrk/midnight-js#1790 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
area:vscode bug has repro platform:macos platform:vscode regression
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDオープンcheck:passed streams:add
難易度 1/5 1時間未満 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信