Repository navigation
LineBoardJOのバーセグメントを右へ1px重ねてピクセル丸めによる白い継ぎ目を解消 - #6356
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FLmPtMci6CXUSuf5z9vGXw
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughLineBoardJOコンポーネントのセグメント描画において、各バーのwidthをbarWidthからbarWidth + 1へ変更した。境界部分での隙間発生を抑える目的の1行修正であり、他のロジックには変更がない。 Changesバー幅修正
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
4 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
LineBoardJO の路線カラーバーで、駅ごとのセグメントの間に 1px 幅の白い継ぎ目が見えることがある問題を修正しました。
変更の種類
変更内容
src/components/LineBoardJO.tsx: バーセグメントの幅をbarWidth + 1にして右へ 1px 食み出させ、隣接セグメント同士を重ねるようにした。barWidthは小数(スマホでは(画面幅 - 96) / 7.835)を含むため、left: barWidth * i/width: barWidthで敷き詰めるとセグメント境界が物理ピクセルに揃わず、丸めの具合で背景の白が 1px 覗くことがある。PortraitMain.tsxの縦棒で採用済みの継ぎ目対策と同じ手法。リグレッションリスクと緩和
LineBoardJO.test.tsxの既存 12 テストを含む全テストスイートがグリーンであることを確認済み。LineBoardWest.tsxは今回のスコープ外(同様の対策を横展開する場合は別PRで対応可能)。テスト
npm run lintが通ることnpm testが通ること(185 suites / 1955 tests パス)npm run typecheckが通ること関連Issue
スクリーンショット(任意)
Generated by Claude Code
Summary by CodeRabbit