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

Đang mở
#15,595 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp, html

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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 چقدر است؟».

Ngôn ngữ chính
C#
Star
1.4k
Fork
264
Merge trung bình
5 giờ 25 phút
Pull request đã merge (30 ngày)
447

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bitfoundation/bitplatform

Tất cả issue của bitfoundation/bitplatform

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.