Skip to content
Draft
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
25 changes: 24 additions & 1 deletion app/globals.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "tailwindcss";
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/dist/font-face.css');

:root {
--background: #ffffff;
Expand Down Expand Up @@ -27,8 +28,30 @@
--font-mono: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

html[dir="rtl"] {
direction: rtl;
text-align: right;
}

body {
background: var(--background);
color: var(--foreground);
font-family: var(--font-sans);
font-family: "Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

textarea, input[type="text"], input[type="search"] {
text-align: right;
}

.chatkit-message-bubble,
.message-bubble {
justify-content: flex-end !important;
}

.chatkit-message,
.chat-message,
.message-bubble,
.chatkit-message-bubble {
direction: rtl !important;
text-align: right !important;
}
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang="en">
<html lang="fa" dir="rtl">
<head>
<Script
src="https://cdn.platform.openai.com/deployments/chatkit/chatkit.js"
Expand Down