You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): sidebar search times no longer wrap in translated languages - #42011
With the app in a translated language, the time on a sidebar search result wraps onto two lines ("2 小时" shows as "2 小" over "时"). The row grows from 36px to 40px, so rows in the list have uneven heights.
Reproduce: Settings → language → 中文, then search threads in the sidebar with a match last active hours ago.
Change
The time sits in a fixed w-8 (32px) box, which fits English labels such as 16h but not "16 小时", "44 Min.", "44 мин" or "16時間". It now uses min-w-8: short labels keep the same column width, and longer ones grow while the title truncates. The other sidebar time slots, the command palette and the workflow feed already use min-w-*.
Scope
Small fix of an obvious visual bug: one class on one element, so no issue. I searched open PRs and issues and found no duplicate. I found this in the desktop Nightly while using it in Chinese.
Verification
I rendered the full app (AppRoot on the in-process fake environment) in headless Chromium, searched the sidebar with five threads of different ages, and measured each row before and after:
Language
Labels on two lines before
After
zh
44 分钟, 2 小时, 16 小时
none
de
44 Min., 2 Std., 16 Std.
none
ru
44 мин
none
ja
16時間
none
Wrapped rows were 40px tall before; every row is 36px after, with no horizontal overflow. Labels that fit in 32px, such as "4 天", keep the 32px column. vp run check:changed passes. No test added, since this is purely visual. I did not check a packaged desktop build, or es, fr, ko, pt-BR and sv.
This is a small styling fix that lets translated relative-time labels in sidebar search results stay on one line while the title truncates. No concrete risk was found, and it is low-risk to merge.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the real change: sidebar search result times no longer wrap in translated languages. It matches the one-class change from fixed w-8 to min-w-8 on the timestamp container in SidebarThre…
Description check
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives expected and observed behavior with reproduction steps. The Change section exp…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the real change: sidebar search result times no longer wrap in translated languages. It matches the one-class change from fixed w-8 to min-w-8 on the timestamp container in SidebarThreadRow.tsx. It uses the conventional commit format from the template and is specific enough for a reviewer scanning history.
Full details: Description check
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives expected and observed behavior with reproduction steps. The Change section explains why min-w-8 fixes the wrap. The Scope section explains why no issue is linked and states that no duplicate exists. The Verification section lists the languages checked, before and after results, the check command, and the items not checked (packaged desktop build and several locales). It includes before/after screenshots, as the template requires for UI changes. The agent attribution line is present. The template asks for a focused test or manual check, and the author provides one.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Real web app, 1280×800, light theme, fresh synthetic databases and Replay threads on both commits. Seed the three reported sidebar titles with activity ages of 2, 3, and 16 hours; select 中文(简体) in Settings > General > Language; open the first thread and search for sidebar.
Proven: the scenario fails on base 110ed776c9 and passes on head a1a3302315. Base labels wrap to 32px high with a 16px line height; head labels stay on one line and longer titles truncate.
Scenario source. Scenario was uploaded without committing it.
Not shown:
Other translated languages and the English baseline were not separately captured; the comparison proves the reported Simplified Chinese wrapping defect.
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
size:XS0-9 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
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.
Problem
With the app in a translated language, the time on a sidebar search result wraps onto two lines ("2 小时" shows as "2 小" over "时"). The row grows from 36px to 40px, so rows in the list have uneven heights.
Reproduce: Settings → language → 中文, then search threads in the sidebar with a match last active hours ago.
Change
The time sits in a fixed
w-8(32px) box, which fits English labels such as16hbut not "16 小时", "44 Min.", "44 мин" or "16時間". It now usesmin-w-8: short labels keep the same column width, and longer ones grow while the title truncates. The other sidebar time slots, the command palette and the workflow feed already usemin-w-*.Scope
Small fix of an obvious visual bug: one class on one element, so no issue. I searched open PRs and issues and found no duplicate. I found this in the desktop Nightly while using it in Chinese.
Verification
I rendered the full app (
AppRooton the in-process fake environment) in headless Chromium, searched the sidebar with five threads of different ages, and measured each row before and after:Wrapped rows were 40px tall before; every row is 36px after, with no horizontal overflow. Labels that fit in 32px, such as "4 天", keep the 32px column.
vp run check:changedpasses. No test added, since this is purely visual. I did not check a packaged desktop build, or es, fr, ko, pt-BR and sv.de, ru, ja before and after
Claude Opus 5.5 in Claude Code (T3 Code)
🤖 Generated with Claude Code