fix(viewer): wrap long session metadata on mobile - #1458
Merged
lizhengfeng101 merged 2 commits intoSep 22, 2026
Merged
Conversation
Contributor
|
🔍 OpenCodeReview found 1 issue(s) in this PR.
|
| @media (max-width: 768px) { | ||
| .session-page .meta span { | ||
| white-space: normal; | ||
| flex-wrap: wrap; |
Contributor
There was a problem hiding this comment.
flex-wrap: wrap has no practical effect here. Each .meta span uses display: flex (from the base rule at line 417), but its children are inline elements (<strong>, <code>, text nodes) that don't participate in flex wrapping. The actual text wrapping on narrow screens is already achieved by white-space: normal and overflow-wrap: anywhere. Consider removing this property to avoid confusion for future maintainers.
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.
Summary
Implements item 2 from #1455: long CWD and branch metadata now wraps instead of being clipped on narrow screens.
overflow: hiddenand ellipsis clipping for the wrapped valuesTesting
go test ./internal/viewer— passedgo vet ./internal/viewer— passedgo build ./cmd/opencodereview— passedgofmtandgit diff --check— passedmake check,make test, projectocr review, and browser-width verification were not available in this Windows environment (Make, the ocr binary, and Playwright/browser runtime are not installed)AI disclosure: Codex (GPT-5) assisted with issue analysis and patch preparation. The complete diff and test results were reviewed before submission.
Fixes #1455