Skip to content

fix: Wikiサイドバーのタイトル文字化けを修正 - #182

Merged
kxuxi merged 1 commit into
mainfrom
codex/42-fix-wiki-title-line-clamp-corruption
Aug 14, 2026
Merged

fix: Wikiサイドバーのタイトル文字化けを修正#182
kxuxi merged 1 commit into
mainfrom
codex/42-fix-wiki-title-line-clamp-corruption

Conversation

@kxuxi

@kxuxi kxuxi commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • 管理Wikiのページ一覧サイドバーで、タイトル文字が壊れて表示される不具合を修正
  • 原因: .wiki-page-link-titledisplay: -webkit-box + -webkit-line-clamp: 2(2行省略)を使っていたが、この組み合わせがChromium系ブラウザで和文タイトルの文字を壊して表示することを、本番と同じCSS構成での再現テストで確認した
  • 標準的な1行省略(white-space: nowrap + text-overflow: ellipsis)に変更。他画面(03-shell.css / 05-data-display.css / 11-rankings-insights.css / 15-home.css)でも同じ方式を使用済み

Test plan

  • npm test(666件)
  • npm run typecheck
  • npx eslint .
  • npm run build
  • ヘッドレスブラウザで本番と同じ全CSSを読み込んだ状態で再現・修正を確認(修正前は文字化け、修正後は正常表示)

The wiki page list's title (.wiki-page-link-title) used the legacy
display:-webkit-box + -webkit-line-clamp:2 pattern to clamp to two
lines. Verified via headless-browser reproduction (with the real
production CSS cascade) that this combination renders Japanese title
text as corrupted/garbled glyphs in Chromium, regardless of the
overflow-wrap value.

Switch to the standard single-line white-space:nowrap +
text-overflow:ellipsis truncation already used elsewhere in this
codebase (03-shell.css, 05-data-display.css, 11-rankings-insights.css,
15-home.css) — titles now truncate to one line with an ellipsis
instead of wrapping to two, and no longer corrupt.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
onore-analytics Ready Ready Preview Aug 14, 2026 11:17am

@kxuxi
kxuxi merged commit 23a41b4 into main Aug 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant