Skip to content

fix(web): sidebar search times no longer wrap in translated languages - #42011

Merged
juliusmarminge merged 2 commits into
pingdotgg:mainfrom
pepsile:fix/sidebar-search-time-wrap
Nov 24, 2026
Merged

juliusmarminge merged 2 commits into
pingdotgg:mainfrom
pepsile:fix/sidebar-search-time-wrap

Conversation

@pepsile

@pepsile pepsile commented Nov 24, 2026

Copy link
Copy Markdown

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 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.

zh before and after

de, ru, ja before and after

de, ru and ja before and after

Claude Opus 5.5 in Claude Code (T3 Code)

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 6c46a8f and a1a3302.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The search-result timestamp container changes from a fixed width to a minimum width, while retaining right alignment.

Changes: Search result layout

Layer / File(s) Summary
Timestamp container sizing
apps/web/src/components/sidebar/SidebarThreadRow.tsx
The timestamp container uses a minimum width instead of a fixed width. It can grow beyond that minimum.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge, bil0000

Merge Risk: Minimal · previous review 6c46a

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between de8551b and 6c46a8f.

Files selected for processing: 1

  • apps/web/src/components/sidebar/SidebarThreadRow.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 24, 2026
…me-wrap

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

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.

Before — 110ed776c9 After — a1a3302315
Result Failed: expected 32 to be less than or equal to 16 Passed
Translated search times Before: Chinese time labels wrap After: Chinese time labels stay on one line
Assertion capture Base failure
Recording Before recording After recording

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.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 24, 2026
@juliusmarminge
juliusmarminge merged commit 28d8a63 into pingdotgg:main Nov 24, 2026
19 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants