Skip to content

Commit 224b5af

Browse files
committed
fix: add dir=auto to table cells for proper RTL/LTR text direction
1 parent 886fca0 commit 224b5af

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
scope="col"
147147
class="px-2.5! py-2! cursor-pointer border-b border-gray-100! dark:border-gray-800!"
148148
style={token.align[headerIdx] ? `text-align: ${token.align[headerIdx]}` : ''}
149+
dir="auto"
149150
>
150151
<div class="gap-1.5 text-start">
151152
<div class="shrink-0 break-normal">
@@ -173,6 +174,7 @@
173174
? ''
174175
: 'border-b border-gray-50! dark:border-gray-850!'}"
175176
style={token.align[cellIdx] ? `text-align: ${token.align[cellIdx]}` : ''}
177+
dir="auto"
176178
>
177179
<div class="break-normal">
178180
<MarkdownInlineTokens

0 commit comments

Comments
 (0)