BitAiChat lays out a message in the chat's direction instead of its own text's

Aperta
#15,595 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@msynk ci sta già lavorando.

Dal 5/12/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp, html

Direzione di ricerca

Start with Components/ChatMessage/BitAiChatMessage.razor and Components/MarkdownView/BitAiMarkdownView.razor, then trace how Dir reaches user messages, reasoning text, and the prompt input. Check how the Markdown view renders paragraphs, list items, headings, quotes, and table cells. Done means each message's text follows its own direction while the chat frame, buttons, and timestamps retain the chat's Dir.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

A BitAiChat whose Dir is Ltr, such as one on an English page, shows an answer written in Persian or Arabic left to right: its list bullets sit on the left, a sentence's closing punctuation lands at the start of its line and its headings align left. An English answer in a Rtl chat has the same problem the other way round. Users mix languages in one conversation, and the answer usually follows the user's language, not the page's.

Cause: BitAiChat passes its Dir down to BitAiChatMessage (Components/ChatMessage/BitAiChatMessage.razor) and BitAiMarkdownView (Components/MarkdownView/BitAiMarkdownView.razor), which write it on the message as dir. Nothing in Bit.BlazorUI.AI sets dir="auto", so a message's text never takes its own direction.

Expected: the chat's frame, buttons and timestamps follow Dir, while a message's text reads in its own direction: dir="auto" on each paragraph, list item, heading, quote and table cell BitAiMarkdownView renders, on the user's own messages, on the reasoning text and in the prompt input.

To reproduce: on bitfabric.co/en-US, open the AI chat and ask «قیمت bit Fabric چقدر است؟».

Lingua principale
C#
Stelle
1.4k
Fork
264
Merge medio
5h 25m
PR unite (30g)
447

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bitfoundation/bitplatform

Tutte le issue di bitfoundation/bitplatform

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.