Skip to content

fix(webui): end long Arabic-sidebar chat titles with an ellipsis - #7678

Merged
kovtcharov-amd merged 3 commits into
amd:mainfrom
tylerbea:fix/7628-rtl-title-fade
Nov 13, 2026
Merged

kovtcharov-amd merged 3 commits into
amd:mainfrom
tylerbea:fix/7628-rtl-title-fade

Conversation

@tylerbea

@tylerbea tylerbea commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

In the Arabic sidebar, long chat titles were cut off mid-letter at the wrong end, because the fade that hides the overflow always sat on one side. Long titles now end with "…" at their own end, whichever way they read. English titles get the "…" too instead of the fade.

Closes #7628

Before After, Arabic

Test plan

  • npx vitest run on the Sidebar tests (67 passed); the title test now asserts the ellipsis
  • npm run build
  • Built app in Arabic with made-up English and Arabic titles
  • English sidebar: long titles end in "…"
🔍 Technical details
  • Sidebar.css swaps the fixed-side mask-image fade for text-overflow: ellipsis and drops the 24 px end padding that only existed for the fade. With unicode-bidi: plaintext, the ellipsis follows each title's own direction.

In Arabic, a long English chat title was chopped mid-letter at the right edge, with the fade drawn on the left where nothing was cut. Long titles now end in an ellipsis at their own end, whatever language they are in.

Closes amd#7628
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Thanks @tylerbea, the ellipsis is a nice simplification. The Arabic screenshot suite (npm run test:rtl) fails on this change, though, in two ways:

  • Its layout audit now reports "Latin text truncates from its start" for the English chat titles in the Arabic sidebar. That's the bug this PR is meant to fix, so the ellipsis is still landing at the wrong end there.
  • "chat titles in the sidebar use the whole row" fails in both languages: the title box is 192px, below its 85%-of-row floor.

Could you look at those two before we merge?

@kovtcharov-amd kovtcharov-amd added bug Something isn't working agent-ui Agent UI changes multilingual Language support: translations, right-to-left layout, Arabic and other non-English languages labels Nov 12, 2026
…their own end

Each title now sets dir="auto", so a Latin title in the Arabic sidebar gets its
ellipsis at the end of its own text. The row decides the side, and the title
flexes to the full row width, which the whole-row visual check measures.
@github-actions github-actions Bot added the electron Electron app changes label Nov 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

Long chat titles now end in "…" at their own end in both sidebars. The latest push looks like it fixes both Arabic screenshot-suite failures raised earlier. I found no bugs.

  • The earlier failures, checked against the audit's rules. Each title now takes its own direction, so an English title in the Arabic sidebar reads left to right and its "…" lands at the end of the text, not the start. The title also stretches across the row, so it should clear the 85%-of-row floor. I couldn't run the Playwright suite here, so please re-run npm run test:rtl and confirm both checks pass before merge.
  • 🟢 The PR description is out of date. Its technical note still says the ellipsis follows the text's direction through unicode-bidi: plaintext, but that rule is gone and dir="auto" does the job now. The "English sidebar: long titles end in '…'" test-plan item is still unchecked. An English after-screenshot would cover it.
🔍 Technical details
  • How each audit rule in visual/rtl.visual.ts now resolves for a Latin title in the Arabic sidebar:
    • dir="auto" gives the title a computed direction: ltr, so the "Latin text truncates from its start" rule (line ~123, which needs direction === 'rtl') no longer fires.
    • .sb-row-main:dir(rtl) .sb-row-title { text-align: right } keeps it out of the "sits Npx off the right edge" rule, which needs start/left.
  • flex: 1; min-width: 0 on .sb-row-title (a blockified flex child of .sb-row-main) answers the "use the whole row" width assertion at line ~497.
  • In the search-snippet layout the title sits inside .sb-row-text, a column flex box with no flex: 1. There flex: 1 acts on height, not width, so a matched title doesn't fill the row. The visual test doesn't cover this case, and it doesn't truncate wrongly: it still ellipsizes at its own end. Not blocking.
  • No docs mention the old fade, so nothing else needs updating.
  • I couldn't run the unit tests or the RTL suite on this runner because node_modules isn't installed.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 13, 2026
Merged via the queue into amd:main with commit 59f8fb4 Nov 13, 2026
79 checks passed
kovtcharov added a commit to kovtcharov/gaia that referenced this pull request Nov 15, 2026
In the Arabic UI, hovering an English chat title hid its first words
under
the rename/pin/delete buttons, clamped English text was cut at the wrong
end or lost its "…", and at phone width the model-server notice grew to
1,400 px of one-word lines and setup's "Use GAIA's own instead" spilled
out of its button. Titles now keep their start and end in "…" in every
direction mix, clamped text ends at its own end, notices and setup
buttons wrap cleanly at 390 px, and the remaining English labels are
translated.

- Sidebar: the hover buttons take room from the title instead of
covering it, so a Latin title in an Arabic row keeps its start (amd#7678's
  ellipsis kept).
- Clamped text: skill descriptions, automation prompts and notifications
  get dir="auto"; clamped blocks align to their own start, since a
right-aligned LTR clamp pushes its "…" past the edge ("preparation a.").
- Phone width: the top notice wraps its buttons under its words; setup
  footer and report buttons grow with a wrapped label.
- Placeholders: search and hint fields show the Arabic alone so it reads
  whole; the schedule name hint drops its nested brackets; the document
  path field is wide enough for its example.
- Still-English labels: Open sidebar, the pstack tooltip, the AMD
  gateway tooltip, and Memory's context and source cells.
- The "install it from the notice above" line now leaves with the
notice.
- test:rtl: new rules for each bug (hover overlap, clamped direction and
  alignment, vertical label spill, clipped and bracketed placeholders,
  the 390 px notice, the install hint), each seen failing first.



## Screenshots

| | Before | After |
| --- | --- | --- |
| Hovering an English chat title in the Arabic sidebar | <img
src="https://raw.githubusercontent.com/kovtcharov/gaia/qa-evidence-rc29/testing/rc29-qa/u_251_ar_sidebar_row_hover_zoom.png"
width="360"> | <img
src="https://raw.githubusercontent.com/kovtcharov/gaia/qa-evidence-rc29/testing/rc29-qa/r2_f10_sidebar_hover_ar.png"
width="360"> |
| Server-down notice at 390 px | <img
src="https://raw.githubusercontent.com/kovtcharov/gaia/qa-evidence-rc29/testing/rc29-qa/u_260_ar_chat_390_light.png"
width="200"> | <img
src="https://raw.githubusercontent.com/kovtcharov/gaia/qa-evidence-rc29/testing/rc29-qa/server-down-notice-390-ar-light.png"
width="200"> |

Clamped English prompt on an Arabic schedule card, after: <img
src="https://raw.githubusercontent.com/kovtcharov/gaia/qa-evidence-rc29/testing/rc29-qa/clamped-schedule-ar.png"
width="480">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-ui Agent UI changes bug Something isn't working electron Electron app changes multilingual Language support: translations, right-to-left layout, Arabic and other non-English languages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: In Arabic, long English chat titles are chopped mid-letter with no fade

2 participants