Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const MessageContent = ({
}: MessageContentProps) => (
<div
className={cn(
'is-user:dark flex w-fit flex-col gap-2 overflow-hidden text-sm',
'is-user:dark flex w-fit flex-col gap-2 overflow-hidden text-start text-sm',
'group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground',
'group-[.is-assistant]:text-foreground',
className,
Expand Down Expand Up @@ -347,7 +347,7 @@ export const MessageResponse = memo(
({ className, ...props }: MessageResponseProps) => (
<Streamdown
className={cn(
'size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_[data-streamdown="code-block"]]:w-[calc(100vw-64px)]! [&_[data-streamdown="table-wrapper"]]:w-[calc(100vw-64px)]!',
'size-full [unicode-bidi:plaintext] [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_*]:text-start [&_[data-streamdown="code-block"]]:w-[calc(100vw-64px)]! [&_[data-streamdown="table-wrapper"]]:w-[calc(100vw-64px)]!',
className,
)}
shikiTheme={themes}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ export const ConversationInput: FC<ConversationInputProps> = ({
}}
onPaste={handlePaste}
rows={1}
dir="auto"
placeholder={
voice.isTranscribing
? 'Transcribing...'
Expand All @@ -579,7 +580,7 @@ export const ConversationInput: FC<ConversationInputProps> = ({
}
disabled={disabled || voice.isTranscribing}
className={cn(
'resize-none border-none bg-transparent px-0 text-[15px] shadow-none focus-visible:ring-0 dark:bg-transparent',
'resize-none border-none bg-transparent px-0 text-start text-[15px] shadow-none focus-visible:ring-0 dark:bg-transparent',
'[field-sizing:fixed]',
variant === 'home'
? 'min-h-[40px] py-2 leading-6'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ export const ConversationMessage: FC<ConversationMessageProps> = ({
</MessageAttachments>
)}
{turn.userText && (
<pre className="whitespace-pre-wrap font-sans text-sm">
<pre
className="whitespace-pre-wrap text-start font-sans text-sm"
dir="auto"
>
{turn.userText}
</pre>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,9 @@ export const ChatInput = forwardRef<ChatInputHandle, ChatInputProps>(
) : (
<textarea
ref={textareaRef}
dir="auto"
className={cn(
'field-sizing-content max-h-60 min-h-[42px] flex-1 resize-none overflow-hidden rounded-2xl border border-border/50 bg-muted/50 px-4 py-2.5 text-sm outline-none transition-colors placeholder:text-muted-foreground/70 hover:border-border focus:border-[var(--accent-orange)]',
'field-sizing-content max-h-60 min-h-[42px] flex-1 resize-none overflow-hidden rounded-2xl border border-border/50 bg-muted/50 px-4 py-2.5 text-start text-sm outline-none transition-colors placeholder:text-muted-foreground/70 hover:border-border focus:border-[var(--accent-orange)]',
voice ? 'pr-[4.5rem]' : 'pr-11',
)}
value={input}
Expand Down
Loading