Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

Improved the Right to Left Direction implementation for relevant languages. (#2583)

Ibrahim3f55c24e368a
diff --git a/.gitignore b/.gitignore
index 9d2c982e4..7ffd1aa19 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,4 +13,8 @@ node_modules
!.env.example
public/sw.js
scripts/**/*.json
-public/workbox-*.js
\ No newline at end of file
+public/workbox-*.js
+
+# Compiled translation files
+/locales/*.js
+!/locales/*.po
\ No newline at end of file
diff --git a/locales/af-ZA.po b/locales/af-ZA.po
index 649af400a..030b7a5de 100644
Binary files a/locales/af-ZA.po and b/locales/af-ZA.po differ
diff --git a/locales/am-ET.po b/locales/am-ET.po
index 801053f20..78eda411c 100644
--- a/locales/am-ET.po
+++ b/locales/am-ET.po
@@ -2017,7 +2017,7 @@ msgstr "አሳይ"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "የጎን አሞሌ"
+msgstr "የጎን አሞሌ<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/ar-SA.po b/locales/ar-SA.po
index 3c1504bde..f12ba8a6d 100644
--- a/locales/ar-SA.po
+++ b/locales/ar-SA.po
@@ -2017,7 +2017,7 @@ msgstr "إظهار"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "الشريط الجانبي"
+msgstr "الشريط الجانبي<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/az-AZ.po b/locales/az-AZ.po
index 15fdcb786..d8e900b32 100644
--- a/locales/az-AZ.po
+++ b/locales/az-AZ.po
@@ -2017,7 +2017,7 @@ msgstr "Göstər"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Yan panel"
+msgstr "Yan panel<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/bg-BG.po b/locales/bg-BG.po
index 3c614278f..c2a0c9f99 100644
--- a/locales/bg-BG.po
+++ b/locales/bg-BG.po
@@ -2017,7 +2017,7 @@ msgstr "Показване"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Странична лента"
+msgstr "Странична лента<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/bn-BD.po b/locales/bn-BD.po
index 1d0b51f63..7b86736bf 100644
--- a/locales/bn-BD.po
+++ b/locales/bn-BD.po
@@ -2017,7 +2017,7 @@ msgstr "দেখান"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "সাইডবার"
+msgstr "সাইডবার<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/ca-ES.po b/locales/ca-ES.po
index 1ca31ce3b..8c6801629 100644
--- a/locales/ca-ES.po
+++ b/locales/ca-ES.po
@@ -2017,7 +2017,7 @@ msgstr "Mostra"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Barra lateral"
+msgstr "Barra lateral<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/cs-CZ.po b/locales/cs-CZ.po
index d4f58b5e5..4a57879ce 100644
--- a/locales/cs-CZ.po
+++ b/locales/cs-CZ.po
@@ -2017,7 +2017,7 @@ msgstr "Zobrazit"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Postranní panel"
+msgstr "Postranní panel<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/da-DK.po b/locales/da-DK.po
index bf5608567..777ae9ae6 100644
--- a/locales/da-DK.po
+++ b/locales/da-DK.po
@@ -2017,7 +2017,7 @@ msgstr "Vis"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Sidebjælke"
+msgstr "Sidebjælke<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/de-DE.po b/locales/de-DE.po
index 707e6b72b..3a925cecb 100644
--- a/locales/de-DE.po
+++ b/locales/de-DE.po
@@ -2017,7 +2017,7 @@ msgstr "Einblenden"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Seitenleiste"
+msgstr "Seitenleiste<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/el-GR.po b/locales/el-GR.po
index c1b49ccd7..30243acdf 100644
--- a/locales/el-GR.po
+++ b/locales/el-GR.po
@@ -2017,7 +2017,7 @@ msgstr "Εμφάνιση"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Πλαϊνή μπάρα"
+msgstr "Πλαϊνή μπάρα<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/es-ES.po b/locales/es-ES.po
index 35f39f878..636439bb7 100644
--- a/locales/es-ES.po
+++ b/locales/es-ES.po
@@ -2017,7 +2017,7 @@ msgstr "Mostrar"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Barra lateral"
+msgstr "Barra lateral<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/fa-IR.po b/locales/fa-IR.po
index 2008ce3f7..5850e5087 100644
--- a/locales/fa-IR.po
+++ b/locales/fa-IR.po
@@ -2017,7 +2017,7 @@ msgstr "نمایش"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "نوار کناری"
+msgstr "نوار کناری<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/fi-FI.po b/locales/fi-FI.po
index f9bbefbc0..c1ae31860 100644
--- a/locales/fi-FI.po
+++ b/locales/fi-FI.po
@@ -2017,7 +2017,7 @@ msgstr "Näytä"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Sivupalkki"
+msgstr "Sivupalkki<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/fr-FR.po b/locales/fr-FR.po
index 106ec1c13..a6962b159 100644
--- a/locales/fr-FR.po
+++ b/locales/fr-FR.po
@@ -2017,7 +2017,7 @@ msgstr "Afficher"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Encart"
+msgstr "Encart<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/he-IL.po b/locales/he-IL.po
index 30f429d87..ee8cef44b 100644
--- a/locales/he-IL.po
+++ b/locales/he-IL.po
@@ -2017,7 +2017,7 @@ msgstr "הצגה"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "סרגל צד"
+msgstr "סרגל צד<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/hi-IN.po b/locales/hi-IN.po
index 80373b974..5acec7cbe 100644
--- a/locales/hi-IN.po
+++ b/locales/hi-IN.po
@@ -2017,7 +2017,7 @@ msgstr "दिखाएँ"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "साइडबार"
+msgstr "साइडबार<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/hu-HU.po b/locales/hu-HU.po
index 065ec2fc2..2715b4049 100644
--- a/locales/hu-HU.po
+++ b/locales/hu-HU.po
@@ -2017,7 +2017,7 @@ msgstr "Megjelenítés"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Oldalsáv"
+msgstr "Oldalsáv<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/id-ID.po b/locales/id-ID.po
index ad0a36fbb..1b19d3738 100644
--- a/locales/id-ID.po
+++ b/locales/id-ID.po
@@ -2017,7 +2017,7 @@ msgstr "Tampilkan"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Bilah Sisi"
+msgstr "Bilah Sisi<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/it-IT.po b/locales/it-IT.po
index 4d510d651..859ca85f5 100644
--- a/locales/it-IT.po
+++ b/locales/it-IT.po
@@ -2017,7 +2017,7 @@ msgstr "Mostra"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Barra laterale"
+msgstr "Barra laterale<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/ja-JP.po b/locales/ja-JP.po
index cf39f04b3..3f560322b 100644
--- a/locales/ja-JP.po
+++ b/locales/ja-JP.po
@@ -2017,7 +2017,7 @@ msgstr "表示"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "サイドバー"
+msgstr "サイドバー<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/km-KH.po b/locales/km-KH.po
index 08836f398..51e30de0b 100644
--- a/locales/km-KH.po
+++ b/locales/km-KH.po
@@ -2017,7 +2017,7 @@ msgstr "បង្ហាញ"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "របារ​បាត"
+msgstr "របារ​បាត<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/kn-IN.po b/locales/kn-IN.po
index 0d937bd7d..89a207171 100644
--- a/locales/kn-IN.po
+++ b/locales/kn-IN.po
@@ -2017,7 +2017,7 @@ msgstr "ತೋರಿಸು"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "ಪಾರ್ಶ್ವಪಟ್ಟಿ"
+msgstr "ಪಾರ್ಶ್ವಪಟ್ಟಿ<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/ko-KR.po b/locales/ko-KR.po
index 67f4f8a1b..c6619762a 100644
--- a/locales/ko-KR.po
+++ b/locales/ko-KR.po
@@ -2017,7 +2017,7 @@ msgstr "표시"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "사이드바"
+msgstr "사이드바<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/lt-LT.po b/locales/lt-LT.po
index 93217c0cb..9492228a6 100644
--- a/locales/lt-LT.po
+++ b/locales/lt-LT.po
@@ -2017,7 +2017,7 @@ msgstr "Rodyti"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Šoninė juosta"
+msgstr "Šoninė juosta<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/lv-LV.po b/locales/lv-LV.po
index 8c47d9531..eac62cfa9 100644
--- a/locales/lv-LV.po
+++ b/locales/lv-LV.po
@@ -2017,7 +2017,7 @@ msgstr "Rādīt"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Sānu josla"
+msgstr "Sānu josla<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/ml-IN.po b/locales/ml-IN.po
index 7cce632a5..11e85d93f 100644
--- a/locales/ml-IN.po
+++ b/locales/ml-IN.po
@@ -2017,7 +2017,7 @@ msgstr "കാണിക്കുക"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "സൈഡ്ബാർ"
+msgstr "സൈഡ്ബാർ<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/mr-IN.po b/locales/mr-IN.po
index eccb3bb9b..0d11bc67d 100644
--- a/locales/mr-IN.po
+++ b/locales/mr-IN.po
@@ -2017,7 +2017,7 @@ msgstr "दाखवा"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "बाजूची पट्टी"
+msgstr "बाजूची पट्टी<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/ms-MY.po b/locales/ms-MY.po
index 0f6a4d119..381043cbc 100644
--- a/locales/ms-MY.po
+++ b/locales/ms-MY.po
@@ -2017,7 +2017,7 @@ msgstr "Paparkan"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Panel Sisi"
+msgstr "Panel Sisi<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/ne-NP.po b/locales/ne-NP.po
index 67d566e7e..27c7bc0af 100644
--- a/locales/ne-NP.po
+++ b/locales/ne-NP.po
@@ -2017,7 +2017,7 @@ msgstr "देखाउनुहोस्"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Sidebar"
+msgstr "Sidebar<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/nl-NL.po b/locales/nl-NL.po
index ad62991fb..9e5fcea20 100644
--- a/locales/nl-NL.po
+++ b/locales/nl-NL.po
@@ -2017,7 +2017,7 @@ msgstr "Weergeven"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Zijbalk"
+msgstr "Zijbalk<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/no-NO.po b/locales/no-NO.po
index 2cdf8919f..1a9388d0e 100644
--- a/locales/no-NO.po
+++ b/locales/no-NO.po
@@ -2017,7 +2017,7 @@ msgstr "Vis"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Sidepanel"
+msgstr "Sidepanel<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/or-IN.po b/locales/or-IN.po
index 633eda866..f0a340011 100644
--- a/locales/or-IN.po
+++ b/locales/or-IN.po
@@ -2017,7 +2017,7 @@ msgstr "ଦେଖାନ୍ତୁ"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "ସାଇଡବାର୍"
+msgstr "ସାଇଡବାର୍<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/pl-PL.po b/locales/pl-PL.po
index 5ef958d62..37bf949ea 100644
--- a/locales/pl-PL.po
+++ b/locales/pl-PL.po
@@ -2017,7 +2017,7 @@ msgstr "Pokaż"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Pasek boczny"
+msgstr "Pasek boczny<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/pt-BR.po b/locales/pt-BR.po
index 82afe7d55..02f395e49 100644
--- a/locales/pt-BR.po
+++ b/locales/pt-BR.po
@@ -2017,7 +2017,7 @@ msgstr "Mostrar"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Barra lateral"
+msgstr "Barra lateral<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/pt-PT.po b/locales/pt-PT.po
index a8dc12ce9..b2953f07f 100644
--- a/locales/pt-PT.po
+++ b/locales/pt-PT.po
@@ -2017,7 +2017,7 @@ msgstr "Mostrar"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Barra lateral"
+msgstr "Barra lateral<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/ro-RO.po b/locales/ro-RO.po
index 9dbd66c6e..95133a276 100644
--- a/locales/ro-RO.po
+++ b/locales/ro-RO.po
@@ -2017,7 +2017,7 @@ msgstr "Arată"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Bară laterală"
+msgstr "Bară laterală<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/ru-RU.po b/locales/ru-RU.po
index faa0292df..98a6d9018 100644
--- a/locales/ru-RU.po
+++ b/locales/ru-RU.po
@@ -2017,7 +2017,7 @@ msgstr "Показать"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Боковая панель"
+msgstr "Боковая панель<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/sk-SK.po b/locales/sk-SK.po
index fcc10d952..24f2d4e0b 100644
--- a/locales/sk-SK.po
+++ b/locales/sk-SK.po
@@ -2017,7 +2017,7 @@ msgstr "Zobraziť"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Bočný panel"
+msgstr "Bočný panel<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/sq-AL.po b/locales/sq-AL.po
index 494378bc2..6cbaecdf5 100644
--- a/locales/sq-AL.po
+++ b/locales/sq-AL.po
@@ -2017,7 +2017,7 @@ msgstr "Shfaq"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Shiriti anësor"
+msgstr "Shiriti anësor<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/sr-SP.po b/locales/sr-SP.po
index 937dd65b2..b3e68803a 100644
--- a/locales/sr-SP.po
+++ b/locales/sr-SP.po
@@ -2017,7 +2017,7 @@ msgstr "Прикажи"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Бочна трака"
+msgstr "Бочна трака<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/sv-SE.po b/locales/sv-SE.po
index 5ce284312..5ec1ea0c4 100644
--- a/locales/sv-SE.po
+++ b/locales/sv-SE.po
@@ -2017,7 +2017,7 @@ msgstr "Visa"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "Sidofält"
+msgstr "Sidofält<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/ta-IN.po b/locales/ta-IN.po
index 57c957709..cb645e978 100644
--- a/locales/ta-IN.po
+++ b/locales/ta-IN.po
@@ -2017,7 +2017,7 @@ msgstr "காட்டு"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "சைட்பார்"
+msgstr "சைட்பார்<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/te-IN.po b/locales/te-IN.po
index 61f69e67d..35de3b47b 100644
--- a/locales/te-IN.po
+++ b/locales/te-IN.po
@@ -2017,7 +2017,7 @@ msgstr ""
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr ""
+msgstr "<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/th-TH.po b/locales/th-TH.po
index 57f9a9b2c..2f6137ff7 100644
--- a/locales/th-TH.po
+++ b/locales/th-TH.po
@@ -2017,7 +2017,7 @@ msgstr ""
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr ""
+msgstr "<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/tr-TR.po b/locales/tr-TR.po
index 5f3b27f97..56a8a4dff 100644
--- a/locales/tr-TR.po
+++ b/locales/tr-TR.po
@@ -2017,7 +2017,7 @@ msgstr ""
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr ""
+msgstr "<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/uk-UA.po b/locales/uk-UA.po
index 96139e404..c8b5dc8d6 100644
--- a/locales/uk-UA.po
+++ b/locales/uk-UA.po
@@ -2017,7 +2017,7 @@ msgstr ""
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr ""
+msgstr "<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/uz-UZ.po b/locales/uz-UZ.po
index 5b43f7d7d..96d88df5f 100644
--- a/locales/uz-UZ.po
+++ b/locales/uz-UZ.po
@@ -2017,7 +2017,7 @@ msgstr ""
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr ""
+msgstr "<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/vi-VN.po b/locales/vi-VN.po
index 2e6b96b4e..4314e538d 100644
--- a/locales/vi-VN.po
+++ b/locales/vi-VN.po
@@ -2017,7 +2017,7 @@ msgstr ""
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr ""
+msgstr "<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/zh-CN.po b/locales/zh-CN.po
index 491a0787e..41dcf4424 100644
--- a/locales/zh-CN.po
+++ b/locales/zh-CN.po
@@ -2017,7 +2017,7 @@ msgstr "显示"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "侧边栏"
+msgstr "侧边栏<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/zh-TW.po b/locales/zh-TW.po
index 519a4c114..1c5ee9f67 100644
--- a/locales/zh-TW.po
+++ b/locales/zh-TW.po
@@ -2017,7 +2017,7 @@ msgstr "顯示"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr "側邊欄"
+msgstr "側邊欄<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/locales/zu-ZA.po b/locales/zu-ZA.po
index 65cb7cfe6..67fe1580c 100644
--- a/locales/zu-ZA.po
+++ b/locales/zu-ZA.po
@@ -2012,7 +2012,7 @@ msgstr ""
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Sidebar"
-msgstr ""
+msgstr "<<<<<<< HEAD"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
msgid "Sidebar Width"
diff --git a/src/components/animation/spotlight.tsx b/src/components/animation/spotlight.tsx
index fa99dd911..2c3264ac3 100644
--- a/src/components/animation/spotlight.tsx
+++ b/src/components/animation/spotlight.tsx
@@ -33,10 +33,10 @@ export const Spotlight = ({
<motion.div
animate={{ x: [0, xOffset, 0] }}
transition={{ duration, repeat: Infinity, repeatType: "reverse", ease: "easeInOut" }}
- className="pointer-events-none absolute top-0 left-0 z-40 h-svh w-svw"
+ className="pointer-events-none absolute start-0 top-0 z-40 h-svh w-svw"
>
<div
- className="absolute top-0 left-0"
+ className="absolute start-0 top-0"
style={{
width: `${width}px`,
height: `${height}px`,
@@ -46,7 +46,7 @@ export const Spotlight = ({
/>
<div
- className="absolute top-0 left-0 origin-top-left"
+ className="absolute start-0 top-0 origin-top-left"
style={{
height: `${height}px`,
width: `${smallWidth}px`,
@@ -56,7 +56,7 @@ export const Spotlight = ({
/>
<div
- className="absolute top-0 left-0 origin-top-left"
+ className="absolute start-0 top-0 origin-top-left"
style={{
height: `${height}px`,
width: `${smallWidth}px`,
@@ -68,7 +68,7 @@ export const Spotlight = ({
<motion.div
animate={{ x: [0, -xOffset, 0] }}
- className="pointer-events-none absolute top-0 right-0 z-40 h-svh w-svw"
+ className="pointer-events-none absolute end-0 top-0 z-40 h-svh w-svw"
transition={{
duration,
repeat: Infinity,
@@ -77,7 +77,7 @@ export const Spotlight = ({
}}
>
<div
- className="absolute top-0 right-0"
+ className="absolute end-0 top-0"
style={{
width: `${width}px`,
height: `${height}px`,
@@ -87,7 +87,7 @@ export const Spotlight = ({
/>
<div
- className="absolute top-0 right-0 origin-top-right"
+ className="absolute end-0 top-0 origin-top-right"
style={{
height: `${height}px`,
width: `${smallWidth}px`,
@@ -97,7 +97,7 @@ export const Spotlight = ({
/>
<div
- className="absolute top-0 right-0 origin-top-right"
+ className="absolute end-0 top-0 origin-top-right"
style={{
height: `${height}px`,
width: `${smallWidth}px`,
diff --git a/src/components/input/chip-input.tsx b/src/components/input/chip-input.tsx
index 898984d43..c95b23c8f 100644
--- a/src/components/input/chip-input.tsx
+++ b/src/components/input/chip-input.tsx
@@ -89,7 +89,7 @@ export function ChipInput({ value, defaultValue = [], onChange, className, ...pr
<div className="flex flex-wrap items-center gap-1.5">
{chips.map((chip, idx) => (
<div key={chip + idx} className="relative">
- <Badge variant="outline" className="flex select-none items-center gap-1 pr-1 pl-2">
+ <Badge variant="outline" className="flex select-none items-center gap-1 ps-2 pe-1">
<span>{chip}</span>
<button
type="button"
@@ -99,7 +99,7 @@ export function ChipInput({ value, defaultValue = [], onChange, className, ...pr
e.stopPropagation();
removeChip(idx);
}}
- className="ml-0.5 hover:text-destructive focus:outline-none"
+ className="ms-0.5 hover:text-destructive focus:outline-none"
>
<XIcon className="size-3" />
</button>
diff --git a/src/components/input/rich-input.module.css b/src/components/input/rich-input.module.css
index f3139e3f3..9d8e1ad9a 100644
--- a/src/components/input/rich-input.module.css
+++ b/src/components/input/rich-input.module.css
@@ -1,6 +1,8 @@
.tiptap_content {
--list-margin: 0.25rem;
--table-border-color: var(--page-text-color);
+ word-wrap: break-word;
+ overflow-wrap: break-word;
:where(p) {
margin-top: 0.5rem;
@@ -30,14 +32,15 @@
}
:where(li) {
+ margin-inline-start: 1rem;
margin-top: var(--list-margin);
margin-bottom: var(--list-margin);
- margin-left: 1rem;
list-style-position: outside;
}
:where(li ul li, li ol li) {
- margin: var(--list-margin) 1rem;
+ margin-block: var(--list-margin);
+ margin-inline: 1rem;
}
:where(mark) {
@@ -62,6 +65,56 @@
border-right: 1px solid var(--table-border-color);
border-bottom: 1px solid var(--table-border-color);
}
+
+ /* RTL Support: Apply RTL direction when text is right-aligned */
+ p[style*="text-align: right"],
+ h1[style*="text-align: right"],
+ h2[style*="text-align: right"],
+ h3[style*="text-align: right"],
+ h4[style*="text-align: right"],
+ h5[style*="text-align: right"],
+ h6[style*="text-align: right"],
+ li[style*="text-align: right"],
+ ul[style*="text-align: right"],
+ ol[style*="text-align: right"] {
+ direction: rtl;
+ word-wrap: break-word;
+ overflow-wrap: break-word;
+ white-space: normal;
+ }
+
+ /* LTR Support: Apply LTR direction when text is left-aligned */
+ p[style*="text-align: left"],
+ h1[style*="text-align: left"],
+ h2[style*="text-align: left"],
+ h3[style*="text-align: left"],
+ h4[style*="text-align: left"],
+ h5[style*="text-align: left"],
+ h6[style*="text-align: left"],
+ li[style*="text-align: left"],
+ ul[style*="text-align: left"],
+ ol[style*="text-align: left"] {
+ direction: ltr;
+ word-wrap: break-word;
+ overflow-wrap: break-word;
+ white-space: normal;
+ }
+
+ /* When list items are RTL, make bullets/numbers appear on the right */
+ li[style*="text-align: right"] {
+ text-align: right;
+ }
+
+ /* Parent list inherits direction from its items */
+ ul:has(li[style*="text-align: right"]),
+ ol:has(li[style*="text-align: right"]) {
+ direction: rtl;
+ }
+
+ ul:has(li[style*="text-align: left"]),
+ ol:has(li[style*="text-align: left"]) {
+ direction: ltr;
+ }
}
.editor_content {
@@ -70,6 +123,8 @@
font-weight: var(--page-body-font-weight);
line-height: var(--page-body-line-height);
color: var(--page-text-color);
+ word-wrap: break-word;
+ overflow-wrap: break-word;
[class*="dark"] & {
--table-border-color: var(--color-foreground);
diff --git a/src/components/input/rich-input.tsx b/src/components/input/rich-input.tsx
index c2044b146..599f4aed0 100644
--- a/src/components/input/rich-input.tsx
+++ b/src/components/input/rich-input.tsx
@@ -88,7 +88,7 @@ const extensions = [
class: "rounded-md px-0.5 py-px",
},
}),
- TextAlign.configure({ types: ["heading", "paragraph"] }),
+ TextAlign.configure({ types: ["heading", "paragraph", "listItem"] }),
TableKit.configure(),
];
diff --git a/src/components/input/url-input.tsx b/src/components/input/url-input.tsx
index 56ec4c1b3..12021b67d 100644
--- a/src/components/input/url-input.tsx
+++ b/src/components/input/url-input.tsx
@@ -54,7 +54,7 @@ export function URLInput({ value, onChange, ...props }: Props) {
<InputGroupInput
value={urlValue}
- className={cn(props.className, "pl-0!")}
+ className={cn(props.className, "ps-0!")}
onChange={handleUrlChange}
{...props}
/>
diff --git a/src/components/layout/breakpoint-indicator.tsx b/src/components/layout/breakpoint-indicator.tsx
index d431ace47..ea68c6a99 100644
--- a/src/components/layout/breakpoint-indicator.tsx
+++ b/src/components/layout/breakpoint-indicator.tsx
@@ -11,8 +11,8 @@ export function BreakpointIndicator({ position = "bottom-right" }: BreakpointInd
const isBottom = position.includes("bottom");
const top = isTop ? "top-0" : "bottom-0";
- const right = isRight ? "right-0" : "left-0";
- const left = isLeft ? "left-0" : "right-0";
+ const right = isRight ? "end-0" : "start-0";
+ const left = isLeft ? "start-0" : "end-0";
const bottom = isBottom ? "bottom-0" : "top-0";
return (
diff --git a/src/components/resume/preview.module.css b/src/components/resume/preview.module.css
index 0cc57cb42..8d5be4977 100644
--- a/src/components/resume/preview.module.css
+++ b/src/components/resume/preview.module.css
@@ -66,4 +66,54 @@
small {
font-size: calc(var(--page-body-font-size) * 0.9pt);
}
+
+ /* RTL Support: Apply RTL direction when text is right-aligned */
+ p[style*="text-align: right"],
+ h1[style*="text-align: right"],
+ h2[style*="text-align: right"],
+ h3[style*="text-align: right"],
+ h4[style*="text-align: right"],
+ h5[style*="text-align: right"],
+ h6[style*="text-align: right"],
+ li[style*="text-align: right"],
+ ul[style*="text-align: right"],
+ ol[style*="text-align: right"] {
+ direction: rtl;
+ word-wrap: break-word;
+ overflow-wrap: break-word;
+ white-space: normal;
+ }
+
+ /* LTR Support: Apply LTR direction when text is left-aligned */
+ p[style*="text-align: left"],
+ h1[style*="text-align: left"],
+ h2[style*="text-align: left"],
+ h3[style*="text-align: left"],
+ h4[style*="text-align: left"],
+ h5[style*="text-align: left"],
+ h6[style*="text-align: left"],
+ li[style*="text-align: left"],
+ ul[style*="text-align: left"],
+ ol[style*="text-align: left"] {
+ direction: ltr;
+ word-wrap: break-word;
+ overflow-wrap: break-word;
+ white-space: normal;
+ }
+
+ /* When list items are RTL, make bullets/numbers appear on the right */
+ li[style*="text-align: right"] {
+ text-align: right;
+ }
+
+ /* Parent list inherits direction from its items */
+ ul:has(li[style*="text-align: right"]),
+ ol:has(li[style*="text-align: right"]) {
+ direction: rtl;
+ }
+
+ ul:has(li[style*="text-align: left"]),
+ ol:has(li[style*="text-align: left"]) {
+ direction: ltr;
+ }
}
diff --git a/src/components/resume/preview.tsx b/src/components/resume/preview.tsx
index 6a59632b4..ad6bf72f9 100644
--- a/src/components/resume/preview.tsx
+++ b/src/components/resume/preview.tsx
@@ -147,7 +147,7 @@ function PageContainer({ pageIndex, pageLayout, pageClassName, showPageNumbers =
return (
<div data-page-index={pageIndex} className="relative">
{showPageNumbers && totalNumberOfPages > 1 && (
- <div className="absolute -top-6 left-0 print:hidden">
+ <div className="absolute start-0 -top-6 print:hidden">
<span className="font-medium text-foreground text-xs">
<Trans>
Page {pageNumber} of {totalNumberOfPages}
@@ -161,7 +161,7 @@ function PageContainer({ pageIndex, pageLayout, pageClassName, showPageNumbers =
</div>
{pageHeight > maxPageHeight && (
- <div className="absolute top-full left-0 mt-4 print:hidden">
+ <div className="absolute start-0 top-full mt-4 print:hidden">
<a
rel="noopener"
target="_blank"
@@ -177,7 +177,7 @@ function PageContainer({ pageIndex, pageLayout, pageClassName, showPageNumbers =
</AlertTitle>
<AlertDescription className="text-xs underline-offset-2 group-hover/link:underline">
<Trans>Learn more about how to fit content on a page</Trans>
- <ArrowRightIcon color="currentColor" className="ml-1 inline size-3" />
+ <ArrowRightIcon color="currentColor" className="ms-1 inline size-3" />
</AlertDescription>
</Alert>
</a>
diff --git a/src/components/resume/templates/azurill.tsx b/src/components/resume/templates/azurill.tsx
index a74c5d3a0..534146b0e 100644
--- a/src/components/resume/templates/azurill.tsx
+++ b/src/components/resume/templates/azurill.tsx
@@ -1,4 +1,5 @@
import { EnvelopeIcon, GlobeIcon, MapPinIcon, PhoneIcon } from "@phosphor-icons/react";
+import { isRTL } from "@/utils/locale";
import { cn } from "@/utils/style";
import { getSectionComponent } from "../shared/get-section-component";
import { PageIcon } from "../shared/page-icon";
@@ -7,61 +8,68 @@ import { PagePicture } from "../shared/page-picture";
import { useResumeStore } from "../store/resume";
import type { TemplateProps } from "./types";
-const sectionClassName = cn(
- // Heading Decoration in Sidebar Layout
- "group-data-[layout=sidebar]:[&>h6]:px-4",
- "group-data-[layout=sidebar]:[&>h6]:relative",
- "group-data-[layout=sidebar]:[&>h6]:inline-flex",
- "group-data-[layout=sidebar]:[&>h6]:items-center",
- "group-data-[layout=sidebar]:[&>h6]:before:content-['']",
- "group-data-[layout=sidebar]:[&>h6]:before:absolute",
- "group-data-[layout=sidebar]:[&>h6]:before:left-0",
- "group-data-[layout=sidebar]:[&>h6]:before:rounded-full",
- "group-data-[layout=sidebar]:[&>h6]:before:size-2",
- "group-data-[layout=sidebar]:[&>h6]:before:border",
- "group-data-[layout=sidebar]:[&>h6]:before:border-(--page-primary-color)",
- "group-data-[layout=sidebar]:[&>h6]:after:content-['']",
- "group-data-[layout=sidebar]:[&>h6]:after:absolute",
- "group-data-[layout=sidebar]:[&>h6]:after:right-0",
- "group-data-[layout=sidebar]:[&>h6]:after:rounded-full",
- "group-data-[layout=sidebar]:[&>h6]:after:size-2",
- "group-data-[layout=sidebar]:[&>h6]:after:border",
- "group-data-[layout=sidebar]:[&>h6]:after:border-(--page-primary-color)",
-
- // Section in Sidebar Layout
- "group-data-[layout=sidebar]:[&_.section-item-header>div]:flex-col",
- "group-data-[layout=sidebar]:[&_.section-item-header>div]:items-start",
-
- // Section in Main Layout
- "group-data-[layout=main]:[&>.section-content]:relative",
- "group-data-[layout=main]:[&>.section-content]:ml-4",
- "group-data-[layout=main]:[&>.section-content]:pl-4",
- "group-data-[layout=main]:[&>.section-content]:border-l",
- "group-data-[layout=main]:[&>.section-content]:border-(--page-primary-color)",
-
- // Timeline Marker in Main Layout
- "group-data-[layout=main]:[&>.section-content]:after:content-['']",
- "group-data-[layout=main]:[&>.section-content]:after:absolute",
- "group-data-[layout=main]:[&>.section-content]:after:top-5",
- "group-data-[layout=main]:[&>.section-content]:after:left-0",
- "group-data-[layout=main]:[&>.section-content]:after:size-2.5",
- "group-data-[layout=main]:[&>.section-content]:after:translate-x-[-50%]",
- "group-data-[layout=main]:[&>.section-content]:after:translate-y-[-50%]",
- "group-data-[layout=main]:[&>.section-content]:after:rounded-full",
- "group-data-[layout=main]:[&>.section-content]:after:border",
- "group-data-[layout=main]:[&>.section-content]:after:border-(--page-primary-color)",
- "group-data-[layout=main]:[&>.section-content]:after:bg-(--page-background-color)",
-);
-
/**
* Template: Azurill
*/
export function AzurillTemplate({ pageIndex, pageLayout }: TemplateProps) {
const isFirstPage = pageIndex === 0;
const { main, sidebar, fullWidth } = pageLayout;
+ const locale = useResumeStore((state) => state.resume.data.metadata.page.locale);
+ const rtlDirection = isRTL(locale);
+
+ const sectionClassName = cn(
+ // Heading Decoration in Sidebar Layout
+ "group-data-[layout=sidebar]:[&>h6]:px-4",
+ "group-data-[layout=sidebar]:[&>h6]:relative",
+ "group-data-[layout=sidebar]:[&>h6]:inline-flex",
+ "group-data-[layout=sidebar]:[&>h6]:items-center",
+ "group-data-[layout=sidebar]:[&>h6]:before:content-['']",
+ "group-data-[layout=sidebar]:[&>h6]:before:absolute",
+ "group-data-[layout=sidebar]:[&>h6]:before:start-0",
+ "group-data-[layout=sidebar]:[&>h6]:before:rounded-full",
+ "group-data-[layout=sidebar]:[&>h6]:before:size-2",
+ "group-data-[layout=sidebar]:[&>h6]:before:border",
+ "group-data-[layout=sidebar]:[&>h6]:before:border-(--page-primary-color)",
+ "group-data-[layout=sidebar]:[&>h6]:after:content-['']",
+ "group-data-[layout=sidebar]:[&>h6]:after:absolute",
+ "group-data-[layout=sidebar]:[&>h6]:after:end-0",
+ "group-data-[layout=sidebar]:[&>h6]:after:rounded-full",
+ "group-data-[layout=sidebar]:[&>h6]:after:size-2",
+ "group-data-[layout=sidebar]:[&>h6]:after:border",
+ "group-data-[layout=sidebar]:[&>h6]:after:border-(--page-primary-color)",
+
+ // Section in Sidebar Layout
+ "group-data-[layout=sidebar]:[&_.section-item-header>div]:flex-col",
+ "group-data-[layout=sidebar]:[&_.section-item-header>div]:items-start",
+
+ // Section in Main Layout
+ "group-data-[layout=main]:[&>.section-content]:relative",
+ "group-data-[layout=main]:[&>.section-content]:ms-4",
+ "group-data-[layout=main]:[&>.section-content]:ps-4",
+ "group-data-[layout=main]:[&>.section-content]:border-s",
+ "group-data-[layout=main]:[&>.section-content]:border-(--page-primary-color)",
+
+ // Timeline Marker in Main Layout
+ "group-data-[layout=main]:[&>.section-content]:after:content-['']",
+ "group-data-[layout=main]:[&>.section-content]:after:absolute",
+ "group-data-[layout=main]:[&>.section-content]:after:top-5",
+ "group-data-[layout=main]:[&>.section-content]:after:start-0",
+ "group-data-[layout=main]:[&>.section-content]:after:size-2.5",
+ rtlDirection
+ ? "group-data-[layout=main]:[&>.section-content]:after:[transform:translate(50%,-50%)]"
+ : "group-data-[layout=main]:[&>.section-content]:after:translate-x-[-50%]",
+ "group-data-[layout=main]:[&>.section-content]:after:translate-y-[-50%]",
+ "group-data-[layout=main]:[&>.section-content]:after:rounded-full",
+ "group-data-[layout=main]:[&>.section-content]:after:border",
+ "group-data-[layout=main]:[&>.section-content]:after:border-(--page-primary-color)",
+ "group-data-[layout=main]:[&>.section-content]:after:bg-(--page-background-color)",
+ );
return (
- <div className="template-azurill page-content space-y-(--page-gap-y) px-(--page-margin-x) pt-(--page-margin-y) print:p-0">
+ <div
+ className="template-azurill page-content space-y-(--page-gap-y) px-(--page-margin-x) py-(--page-margin-y) print:p-0"
+ style={{ direction: rtlDirection ? "rtl" : "ltr" }}
+ >
{isFirstPage && <Header />}
<div className="flex gap-x-(--page-gap-x)">
diff --git a/src/components/resume/templates/bronzor.tsx b/src/components/resume/templates/bronzor.tsx
index 96dea74a1..535f2f455 100644
--- a/src/components/resume/templates/bronzor.tsx
+++ b/src/components/resume/templates/bronzor.tsx
@@ -1,4 +1,5 @@
import { EnvelopeIcon, GlobeIcon, MapPinIcon, PhoneIcon } from "@phosphor-icons/react";
+import { isRTL } from "@/utils/locale";
import { cn } from "@/utils/style";
import { getSectionComponent } from "../shared/get-section-component";
import { PageIcon } from "../shared/page-icon";
@@ -21,9 +22,14 @@ const sectionClassName = cn(
export function BronzorTemplate({ pageIndex, pageLayout }: TemplateProps) {
const isFirstPage = pageIndex === 0;
const { main, sidebar, fullWidth } = pageLayout;
+ const locale = useResumeStore((state) => state.resume.data.metadata.page.locale);
+ const rtlDirection = isRTL(locale);
return (
- <div className="template-bronzor page-content space-y-(--page-gap-y) px-(--page-margin-x) pt-(--page-margin-y) print:p-0">
+ <div
+ className="template-bronzor page-content space-y-(--page-gap-y) px-(--page-margin-x) py-(--page-margin-y) print:p-0"
+ style={{ direction: rtlDirection ? "rtl" : "ltr" }}
+ >
{isFirstPage && <Header />}
<div className="space-y-(--page-gap-y)">
diff --git a/src/components/resume/templates/chikorita.tsx b/src/components/resume/templates/chikorita.tsx
index d061f28e3..5e738beac 100644
--- a/src/components/resume/templates/chikorita.tsx
+++ b/src/components/resume/templates/chikorita.tsx
@@ -1,4 +1,5 @@
import { EnvelopeIcon, GlobeIcon, MapPinIcon, PhoneIcon } from "@phosphor-icons/react";
+import { isRTL } from "@/utils/locale";
import { cn } from "@/utils/style";
import { getSectionComponent } from "../shared/get-section-component";
import { PageIcon } from "../shared/page-icon";
@@ -33,12 +34,16 @@ const sectionClassName = cn(
export function ChikoritaTemplate({ pageIndex, pageLayout }: TemplateProps) {
const isFirstPage = pageIndex === 0;
const { main, sidebar, fullWidth } = pageLayout;
+ const locale = useResumeStore((state) => state.resume.data.metadata.page.locale);
+ const rtlDirection = isRTL(locale);
return (
- <div className="template-chikorita page-content">
+ <div className="template-chikorita page-content" style={{ direction: rtlDirection ? "rtl" : "ltr" }}>
{/* Sidebar Background */}
{!fullWidth && (
- <div className="page-sidebar-background absolute inset-y-0 right-0 z-0 w-(--page-sidebar-width) shrink-0 bg-(--page-primary-color)" />
+ <div
+ className={`page-sidebar-background absolute inset-y-0 ${rtlDirection ? "start-0" : "end-0"} z-0 w-(--page-sidebar-width) shrink-0 bg-(--page-primary-color)`}
+ />
)}
{isFirstPage && <Header />}
@@ -75,7 +80,7 @@ function Header() {
return (
<div className="page-header relative flex">
- <div className="flex flex-1 items-center pt-(--page-margin-y) pl-(--page-margin-x)">
+ <div className="flex flex-1 items-center ps-(--page-margin-x) pt-(--page-margin-y)">
<PagePicture />
<div className="page-basics space-y-2 px-(--page-margin-x)">
diff --git a/src/components/resume/templates/ditgar.tsx b/src/components/resume/templates/ditgar.tsx
index 1f1df7c46..f66413699 100644
--- a/src/components/resume/templates/ditgar.tsx
+++ b/src/components/resume/templates/ditgar.tsx
@@ -1,3 +1,4 @@
+import { isRTL } from "@/utils/locale";
import { cn } from "@/utils/style";
import { getSectionComponent } from "../shared/get-section-component";
import { PageIcon } from "../shared/page-icon";
@@ -15,10 +16,10 @@ const sectionClassName = cn(
"group-data-[layout=sidebar]:[&_.section-item-header>div]:items-start",
// Decoration Line in Section Item Header
- "group-data-[layout=main]:[&_.section-item-header]:pl-2",
+ "group-data-[layout=main]:[&_.section-item-header]:ps-2",
"group-data-[layout=main]:[&_.section-item-header]:py-0.5",
- "group-data-[layout=main]:[&_.section-item-header]:-ml-2.5",
- "group-data-[layout=main]:[&_.section-item-header]:border-l-2",
+ "group-data-[layout=main]:[&_.section-item-header]:-ms-2.5",
+ "group-data-[layout=main]:[&_.section-item-header]:border-s-2",
"group-data-[layout=main]:[&_.section-item-header]:border-(--page-primary-color)",
);
@@ -28,18 +29,32 @@ const sectionClassName = cn(
export function DitgarTemplate({ pageIndex, pageLayout }: TemplateProps) {
const isFirstPage = pageIndex === 0;
const { main, sidebar, fullWidth } = pageLayout;
+ const locale = useResumeStore((state) => state.resume.data.metadata.page.locale);
+ const rtlDirection = isRTL(locale);
const SummaryComponent = getSectionComponent("summary", {
sectionClassName: cn(sectionClassName, "px-(--page-margin-x) pt-(--page-margin-y)"),
});
return (
- <div className="template-ditgar page-content">
+ <div
+ className="template-ditgar page-content grid min-h-[inherit] grid-cols-3"
+ style={{ direction: rtlDirection ? "rtl" : "ltr" }}
+ >
{/* Sidebar Background */}
{(!fullWidth || isFirstPage) && (
- <div className="page-sidebar-background absolute inset-y-0 left-0 z-0 w-(--page-sidebar-width) shrink-0 bg-(--page-primary-color)/20" />
+ <div
+ className={`page-sidebar-background absolute inset-y-0 ${rtlDirection ? "end-0" : "start-0"} z-0 w-(--page-sidebar-width) shrink-0 bg-(--page-primary-color)/20`}
+ />
)}
+ <div
+ data-layout="sidebar"
+ className={cn("sidebar group flex flex-col", !(isFirstPage || !fullWidth) && "hidden")}
+ >
+ {isFirstPage && <Header />}
+ </div>
+
<div className="flex">
{(!fullWidth || isFirstPage) && (
<aside data-layout="sidebar" className="sidebar group z-10 flex w-(--page-sidebar-width) shrink-0 flex-col">
diff --git a/src/components/resume/templates/ditto.tsx b/src/components/resume/templates/ditto.tsx
index 8578267f4..70082088f 100644
--- a/src/components/resume/templates/ditto.tsx
+++ b/src/components/resume/templates/ditto.tsx
@@ -1,4 +1,5 @@
import { EnvelopeIcon, GlobeIcon, MapPinIcon, PhoneIcon } from "@phosphor-icons/react";
+import { isRTL } from "@/utils/locale";
import { cn } from "@/utils/style";
import { getSectionComponent } from "../shared/get-section-component";
import { PageIcon } from "../shared/page-icon";
@@ -19,16 +20,18 @@ const sectionClassName = cn(
export function DittoTemplate({ pageIndex, pageLayout }: TemplateProps) {
const isFirstPage = pageIndex === 0;
const { main, sidebar, fullWidth } = pageLayout;
+ const locale = useResumeStore((state) => state.resume.data.metadata.page.locale);
+ const rtlDirection = isRTL(locale);
return (
- <div className="template-ditto page-content">
+ <div className="template-ditto page-content" style={{ direction: rtlDirection ? "rtl" : "ltr" }}>
{isFirstPage && <Header />}
<div className="flex pt-(--page-margin-y)">
{!fullWidth && (
<aside
data-layout="sidebar"
- className="group page-sidebar w-(--page-sidebar-width) shrink-0 space-y-4 overflow-x-hidden pl-(--page-margin-x)"
+ className="group page-sidebar w-(--page-sidebar-width) shrink-0 space-y-4 overflow-x-hidden ps-(--page-margin-x)"
>
{sidebar.map((section) => {
const Component = getSectionComponent(section, { sectionClassName });
@@ -55,7 +58,7 @@ function Header() {
<div className="page-header relative">
<div className="page-basics bg-(--page-primary-color) text-(--page-background-color)">
<div className="basics-header flex items-center">
- <div className="flex w-(--page-sidebar-width) shrink-0 justify-center pl-(--page-margin-x)">
+ <div className="flex w-(--page-sidebar-width) shrink-0 justify-center ps-(--page-margin-x)">
<PagePicture className="absolute top-8" />
</div>
diff --git a/src/components/resume/templates/gengar.tsx b/src/components/resume/templates/gengar.tsx
index d8bfa7462..6be070290 100644
--- a/src/components/resume/templates/gengar.tsx
+++ b/src/components/resume/templates/gengar.tsx
@@ -1,3 +1,4 @@
+import { isRTL } from "@/utils/locale";
import { cn } from "@/utils/style";
import { getSectionComponent } from "../shared/get-section-component";
import { PageIcon } from "../shared/page-icon";
@@ -22,12 +23,16 @@ const sectionClassName = cn(
export function GengarTemplate({ pageIndex, pageLayout }: TemplateProps) {
const isFirstPage = pageIndex === 0;
const { main, sidebar, fullWidth } = pageLayout;
+ const locale = useResumeStore((state) => state.resume.data.metadata.page.locale);
+ const rtlDirection = isRTL(locale);
return (
- <div className="template-gengar page-content">
+ <div className="template-gengar page-content" style={{ direction: rtlDirection ? "rtl" : "ltr" }}>
{/* Sidebar Background */}
{(!fullWidth || isFirstPage) && (
- <div className="page-sidebar-background absolute inset-y-0 left-0 z-0 w-(--page-sidebar-width) shrink-0 bg-(--page-primary-color)/20" />
+ <div
+ className={`page-sidebar-background absolute inset-y-0 ${rtlDirection ? "end-0" : "start-0"} z-0 w-(--page-sidebar-width) shrink-0 bg-(--page-primary-color)/20`}
+ />
)}
<div className="flex">
diff --git a/src/components/resume/templates/glalie.tsx b/src/components/resume/templates/glalie.tsx
index dfb65e5d3..b3847dfdc 100644
--- a/src/components/resume/templates/glalie.tsx
+++ b/src/components/resume/templates/glalie.tsx
@@ -1,4 +1,5 @@
import { EnvelopeIcon, GlobeIcon, MapPinIcon, PhoneIcon } from "@phosphor-icons/react";
+import { isRTL } from "@/utils/locale";
import { cn } from "@/utils/style";
import { getSectionComponent } from "../shared/get-section-component";
import { PageIcon } from "../shared/page-icon";
@@ -22,12 +23,16 @@ const sectionClassName = cn(
export function GlalieTemplate({ pageIndex, pageLayout }: TemplateProps) {
const isFirstPage = pageIndex === 0;
const { main, sidebar, fullWidth } = pageLayout;
+ const locale = useResumeStore((state) => state.resume.data.metadata.page.locale);
+ const rtlDirection = isRTL(locale);
return (
- <div className="template-glalie page-content">
+ <div className="template-glalie page-content" style={{ direction: rtlDirection ? "rtl" : "ltr" }}>
{/* Sidebar Background */}
{(!fullWidth || isFirstPage) && (
- <div className="page-sidebar-background absolute inset-y-0 left-0 z-0 w-(--page-sidebar-width) shrink-0 bg-(--page-primary-color)/20" />
+ <div
+ className={`page-sidebar-background absolute inset-y-0 ${rtlDirection ? "end-0" : "start-0"} z-0 w-(--page-sidebar-width) shrink-0 bg-(--page-primary-color)/20`}
+ />
)}
<div className="flex">
diff --git a/src/components/resume/templates/kakuna.tsx b/src/components/resume/templates/kakuna.tsx
index 734a88c88..62645662e 100644
--- a/src/components/resume/templates/kakuna.tsx
+++ b/src/components/resume/templates/kakuna.tsx
@@ -1,4 +1,5 @@
import { EnvelopeIcon, GlobeIcon, MapPinIcon, PhoneIcon } from "@phosphor-icons/react";
+import { isRTL } from "@/utils/locale";
import { cn } from "@/utils/style";
import { getSectionComponent } from "../shared/get-section-component";
import { PageIcon } from "../shared/page-icon";
@@ -18,9 +19,14 @@ const sectionClassName = cn(
export function KakunaTemplate({ pageIndex, pageLayout }: TemplateProps) {
const isFirstPage = pageIndex === 0;
const { main, sidebar, fullWidth } = pageLayout;
+ const locale = useResumeStore((state) => state.resume.data.metadata.page.locale);
+ const rtlDirection = isRTL(locale);
return (
- <div className="template-kakuna page-content space-y-4 px-(--page-margin-x) pt-(--page-margin-y) print:p-0">
+ <div
+ className="template-kakuna page-content space-y-4 px-(--page-margin-x) py-(--page-margin-y) print:p-0"
+ style={{ direction: rtlDirection ? "rtl" : "ltr" }}
+ >
{isFirstPage && <Header />}
<main data-layout="main" className="group page-main space-y-4">
diff --git a/src/components/resume/templates/lapras.tsx b/src/components/resume/templates/lapras.tsx
index 8f407a279..612c68e9a 100644
--- a/src/components/resume/templates/lapras.tsx
+++ b/src/components/resume/templates/lapras.tsx
@@ -1,4 +1,5 @@
import { EnvelopeIcon, GlobeIcon, MapPinIcon, PhoneIcon } from "@phosphor-icons/react";
+import { isRTL } from "@/utils/locale";
import { cn } from "@/utils/style";
import { getSectionComponent } from "../shared/get-section-component";
import { PageIcon } from "../shared/page-icon";
@@ -21,6 +22,8 @@ const sectionClassName = cn(
export function LaprasTemplate({ pageIndex, pageLayout }: TemplateProps) {
const isFirstPage = pageIndex === 0;
const { main, sidebar, fullWidth } = pageLayout;
+ const locale = useResumeStore((state) => state.resume.data.metadata.page.locale);
+ const rtlDirection = isRTL(locale);
const containerBorderRadius = useResumeStore((state) => Math.min(state.resume.data.picture.borderRadius, 30));
const headingNegativeMargin = useResumeStore((state) => state.resume.data.metadata.typography.heading.fontSize + 6);
@@ -31,6 +34,7 @@ export function LaprasTemplate({ pageIndex, pageLayout }: TemplateProps) {
{
"--container-border-radius": `${containerBorderRadius}pt`,
"--heading-negative-margin": `${headingNegativeMargin}pt`,
+ direction: rtlDirection ? "rtl" : "ltr",
} as React.CSSProperties
}
className="template-lapras page-content space-y-6 px-(--page-margin-x) pt-(--page-margin-y) print:p-0"
@@ -74,7 +78,7 @@ function Header() {
<p className="basics-headline">{basics.headline}</p>
</div>
- <div className="basics-items flex flex-wrap gap-x-2 gap-y-0.5 *:flex *:items-center *:gap-x-1.5 *:border-(--page-primary-color) *:border-r *:py-0.5 *:pr-2 *:last:border-r-0">
+ <div className="basics-items flex flex-wrap gap-x-2 gap-y-0.5 *:flex *:items-center *:gap-x-1.5 *:border-(--page-primary-color) *:border-e *:py-0.5 *:pe-2 *:last:border-e-0">
{basics.email && (
<div className="basics-item-email">
<EnvelopeIcon />
diff --git a/src/components/resume/templates/leafish.tsx b/src/components/resume/templates/leafish.tsx
index 3413d2956..92ab523da 100644
--- a/src/components/resume/templates/leafish.tsx
+++ b/src/components/resume/templates/leafish.tsx
@@ -1,4 +1,5 @@
import { EnvelopeIcon, GlobeIcon, MapPinIcon, PhoneIcon } from "@phosphor-icons/react";
+import { isRTL } from "@/utils/locale";
import { cn } from "@/utils/style";
import { getSectionComponent } from "../shared/get-section-component";
import { PageIcon } from "../shared/page-icon";
@@ -19,9 +20,11 @@ const sectionClassName = cn(
export function LeafishTemplate({ pageIndex, pageLayout }: TemplateProps) {
const isFirstPage = pageIndex === 0;
const { main, sidebar, fullWidth } = pageLayout;
+ const locale = useResumeStore((state) => state.resume.data.metadata.page.locale);
+ const rtlDirection = isRTL(locale);
return (
- <div className="template-leafish page-content space-y-4">
+ <div className="template-leafish page-content space-y-4" style={{ direction: rtlDirection ? "rtl" : "ltr" }}>
{isFirstPage && <Header />}
<div className="flex gap-x-(--page-margin-x) px-(--page-margin-x) pt-(--page-margin-y)">
diff --git a/src/components/resume/templates/onyx.tsx b/src/components/resume/templates/onyx.tsx
index b51193d03..4d35b97cb 100644
--- a/src/components/resume/templates/onyx.tsx
+++ b/src/components/resume/templates/onyx.tsx
@@ -1,4 +1,5 @@
import { EnvelopeIcon, GlobeIcon, MapPinIcon, PhoneIcon } from "@phosphor-icons/react";
+import { isRTL } from "@/utils/locale";
import { cn } from "@/utils/style";
import { getSectionComponent } from "../shared/get-section-component";
import { PageIcon } from "../shared/page-icon";
@@ -15,9 +16,14 @@ const sectionClassName = cn();
export function OnyxTemplate({ pageIndex, pageLayout }: TemplateProps) {
const isFirstPage = pageIndex === 0;
const { main, sidebar, fullWidth } = pageLayout;
+ const locale = useResumeStore((state) => state.resume.data.metadata.page.locale);
+ const rtlDirection = isRTL(locale);
return (
- <div className="template-onyx page-content space-y-(--page-gap-y) px-(--page-margin-x) pt-(--page-margin-y) print:p-0">
+ <div
+ className="template-onyx page-content space-y-(--page-gap-y) px-(--page-margin-x) py-(--page-margin-y) print:p-0"
+ style={{ direction: rtlDirection ? "rtl" : "ltr" }}
+ >
{isFirstPage && <Header />}
<main data-layout="main" className="group page-main space-y-(--page-gap-y)">
diff --git a/src/components/resume/templates/pikachu.tsx b/src/components/resume/templates/pikachu.tsx
index 1a32f77a8..3263cb919 100644
--- a/src/components/resume/templates/pikachu.tsx
+++ b/src/components/resume/templates/pikachu.tsx
@@ -1,4 +1,5 @@
import { EnvelopeIcon, GlobeIcon, MapPinIcon, PhoneIcon } from "@phosphor-icons/react";
+import { isRTL } from "@/utils/locale";
import { cn } from "@/utils/style";
import { getSectionComponent } from "../shared/get-section-component";
import { PageIcon } from "../shared/page-icon";
@@ -22,39 +23,46 @@ const sectionClassName = cn(
export function PikachuTemplate({ pageIndex, pageLayout }: TemplateProps) {
const isFirstPage = pageIndex === 0;
const { main, sidebar, fullWidth } = pageLayout;
+ const locale = useResumeStore((state) => state.resume.data.metadata.page.locale);
+ const rtlDirection = isRTL(locale);
return (
- <div className="template-pikachu page-content flex gap-x-(--page-margin-x) px-(--page-margin-x) pt-(--page-margin-y) print:p-0">
- <aside
- data-layout="sidebar"
- className="group page-sidebar flex w-(--page-sidebar-width) shrink-0 flex-col space-y-(--page-gap-y)"
- >
- {isFirstPage && (
- <div className="flex max-w-(--page-sidebar-width) items-center justify-start">
- <PagePicture />
- </div>
- )}
+ <div
+ className="template-pikachu page-content px-(--page-margin-x) py-(--page-margin-y) print:p-0"
+ style={{ direction: rtlDirection ? "rtl" : "ltr" }}
+ >
+ <div className="flex gap-x-(--page-margin-x)">
+ <aside
+ data-layout="sidebar"
+ className="group page-sidebar flex w-(--page-sidebar-width) shrink-0 flex-col space-y-3"
+ >
+ {isFirstPage && (
+ <div className="flex items-center justify-center">
+ <PagePicture />
+ </div>
+ )}
+
+ {!fullWidth && (
+ <div className="shrink-0 space-y-(--page-gap-y) overflow-x-hidden">
+ {sidebar.map((section) => {
+ const Component = getSectionComponent(section, { sectionClassName });
+ return <Component key={section} id={section} />;
+ })}
+ </div>
+ )}
+ </aside>
+
+ <main data-layout="main" className="group page-main flex-1 space-y-(--page-margin-y)">
+ {isFirstPage && <Header />}
- {!fullWidth && (
- <div className="shrink-0 space-y-(--page-gap-y) overflow-x-hidden">
- {sidebar.map((section) => {
+ <div className="space-y-(--page-gap-y)">
+ {main.map((section) => {
const Component = getSectionComponent(section, { sectionClassName });
return <Component key={section} id={section} />;
})}
</div>
- )}
- </aside>
-
- <main data-layout="main" className="group page-main flex-1 space-y-(--page-margin-y)">
- {isFirstPage && <Header />}
-
- <div className="space-y-(--page-gap-y)">
- {main.map((section) => {
- const Component = getSectionComponent(section, { sectionClassName });
- return <Component key={section} id={section} />;
- })}
- </div>
- </main>
+ </main>
+ </div>
</div>
);
}
diff --git a/src/components/resume/templates/rhyhorn.tsx b/src/components/resume/templates/rhyhorn.tsx
index 912b5a7fb..36cac6f8a 100644
--- a/src/components/resume/templates/rhyhorn.tsx
+++ b/src/components/resume/templates/rhyhorn.tsx
@@ -1,4 +1,5 @@
import { EnvelopeIcon, GlobeIcon, MapPinIcon, PhoneIcon } from "@phosphor-icons/react";
+import { isRTL } from "@/utils/locale";
import { cn } from "@/utils/style";
import { getSectionComponent } from "../shared/get-section-component";
import { PageIcon } from "../shared/page-icon";
@@ -18,9 +19,14 @@ const sectionClassName = cn(
export function RhyhornTemplate({ pageIndex, pageLayout }: TemplateProps) {
const isFirstPage = pageIndex === 0;
const { main, sidebar, fullWidth } = pageLayout;
+ const locale = useResumeStore((state) => state.resume.data.metadata.page.locale);
+ const rtlDirection = isRTL(locale);
return (
- <div className="template-rhyhorn page-content space-y-4 px-(--page-margin-x) pt-(--page-margin-y) print:p-0">
+ <div
+ className="template-rhyhorn page-content space-y-4 px-(--page-margin-x) py-(--page-margin-y) print:p-0"
+ style={{ direction: rtlDirection ? "rtl" : "ltr" }}
+ >
{isFirstPage && <Header />}
<main data-layout="main" className="group page-main space-y-4">
@@ -53,7 +59,7 @@ function Header() {
<p className="basics-headline">{basics.headline}</p>
</div>
- <div className="basics-items flex flex-wrap gap-x-2 gap-y-0.5 *:flex *:items-center *:gap-x-1.5 *:border-(--page-primary-color) *:border-r *:py-0.5 *:pr-2 *:last:border-r-0">
+ <div className="basics-items flex flex-wrap gap-x-2 gap-y-0.5 *:flex *:items-center *:gap-x-1.5 *:border-(--page-primary-color) *:border-e *:py-0.5 *:pe-2 *:last:border-e-0">
{basics.email && (
<div className="basics-item-email">
<EnvelopeIcon />
diff --git a/src/components/ui/alert.tsx b/src/components/ui/alert.tsx
index 73051b33e..e3e2f2c57 100644
--- a/src/components/ui/alert.tsx
+++ b/src/components/ui/alert.tsx
@@ -3,7 +3,7 @@ import type * as React from "react";
import { cn } from "@/utils/style";
const alertVariants = cva(
- "group/alert relative grid w-full gap-1 rounded-lg border px-4 py-3 text-start text-sm has-data-[slot=alert-action]:relative has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 has-data-[slot=alert-action]:pr-18 *:[svg:not([class*='size-'])]:size-4 *:[svg]:row-span-2 *:[svg]:translate-y-1 *:[svg]:text-current",
+ "group/alert relative grid w-full gap-1 rounded-lg border px-4 py-3 text-start text-sm has-data-[slot=alert-action]:relative has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 has-data-[slot=alert-action]:pe-18 *:[svg:not([class*='size-'])]:size-4 *:[svg]:row-span-2 *:[svg]:translate-y-1 *:[svg]:text-current",
{
variants: {
variant: {
@@ -49,7 +49,7 @@ function AlertDescription({ className, ...props }: React.ComponentProps<"div">)
}
function AlertAction({ className, ...props }: React.ComponentProps<"div">) {
- return <div data-slot="alert-action" className={cn("absolute top-2.5 right-3", className)} {...props} />;
+ return <div data-slot="alert-action" className={cn("absolute end-3 top-2.5", className)} {...props} />;
}
export { Alert, AlertTitle, AlertDescription, AlertAction };
diff --git a/src/components/ui/avatar.tsx b/src/components/ui/avatar.tsx
index 1a46d6644..f587f602e 100644
--- a/src/components/ui/avatar.tsx
+++ b/src/components/ui/avatar.tsx
@@ -50,7 +50,7 @@ function AvatarBadge({ className, ...props }: React.ComponentProps<"span">) {
<span
data-slot="avatar-badge"
className={cn(
- "absolute right-0 bottom-0 z-10 inline-flex select-none items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background",
+ "absolute end-0 bottom-0 z-10 inline-flex select-none items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background",
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2",
diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsx
index 93aad10c0..63e92da85 100644
--- a/src/components/ui/badge.tsx
+++ b/src/components/ui/badge.tsx
@@ -4,7 +4,7 @@ import type * as React from "react";
import { cn } from "@/utils/style";
const badgeVariants = cva(
- "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-4xl border border-transparent px-2 py-0.5 font-medium text-xs transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
+ "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-4xl border border-transparent px-2 py-0.5 font-medium text-xs transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-start]:ps-1.5 has-data-[icon=inline-end]:pe-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
{
variants: {
variant: {
diff --git a/src/components/ui/button-group.tsx b/src/components/ui/button-group.tsx
index 0f84b4577..f34b5c535 100644
--- a/src/components/ui/button-group.tsx
+++ b/src/components/ui/button-group.tsx
@@ -9,7 +9,7 @@ const buttonGroupVariants = cva(
variants: {
orientation: {
horizontal:
- "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-md!",
+ "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-md!",
vertical:
"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-md!",
},
diff --git a/src/components/ui/combobox.tsx b/src/components/ui/combobox.tsx
index 1cd1f9fc1..6f30e7f4d 100644
--- a/src/components/ui/combobox.tsx
+++ b/src/components/ui/combobox.tsx
@@ -109,7 +109,7 @@ function Combobox<TValue extends string | number = string>({
) : (
<>
{selectedLabel ?? placeholder}
- <CaretUpDownIcon className="ml-2 shrink-0 opacity-50" />
+ <CaretUpDownIcon className="ms-2 shrink-0 opacity-50" />
</>
)}
</Button>
diff --git a/src/components/ui/command.tsx b/src/components/ui/command.tsx
index 01d9dedd6..c50561ce3 100644
--- a/src/components/ui/command.tsx
+++ b/src/components/ui/command.tsx
@@ -43,7 +43,7 @@ function CommandDialog({
function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>) {
return (
<div data-slot="command-input-wrapper" className="p-1 pb-0">
- <InputGroup className="h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!">
+ <InputGroup className="h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:ps-2!">
<CommandPrimitive.Input
data-slot="command-input"
className={cn("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className)}
diff --git a/src/components/ui/context-menu.tsx b/src/components/ui/context-menu.tsx
index b9229cf75..18284d6c1 100644
--- a/src/components/ui/context-menu.tsx
+++ b/src/components/ui/context-menu.tsx
@@ -44,7 +44,7 @@ function ContextMenuContent({
<ContextMenuPrimitive.Content
data-slot="context-menu-content"
className={cn(
- "data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-36 origin-(--radix-context-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in",
+ "data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-36 origin-(--radix-context-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in",
className,
)}
{...props}
@@ -68,7 +68,7 @@ function ContextMenuItem({
data-inset={inset}
data-variant={variant}
className={cn(
- "group/context-menu-item relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-inset:pl-8 data-[variant=destructive]:text-destructive data-disabled:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive",
+ "group/context-menu-item relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-inset:ps-8 data-[variant=destructive]:text-destructive data-disabled:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive",
className,
)}
{...props}
@@ -89,7 +89,7 @@ function ContextMenuSubTrigger({
data-slot="context-menu-sub-trigger"
data-inset={inset}
className={cn(
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-inset:pl-8 data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-inset:ps-8 data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
className,
)}
{...props}
@@ -105,7 +105,7 @@ function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typ
<ContextMenuPrimitive.SubContent
data-slot="context-menu-sub-content"
className={cn(
- "data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg duration-100 data-closed:animate-out data-open:animate-in",
+ "data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg duration-100 data-closed:animate-out data-open:animate-in",
className,
)}
{...props}
@@ -123,13 +123,13 @@ function ContextMenuCheckboxItem({
<ContextMenuPrimitive.CheckboxItem
data-slot="context-menu-checkbox-item"
className={cn(
- "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
className,
)}
checked={checked}
{...props}
>
- <span className="pointer-events-none absolute right-2">
+ <span className="pointer-events-none absolute end-2">
<ContextMenuPrimitive.ItemIndicator>
<CheckIcon />
</ContextMenuPrimitive.ItemIndicator>
@@ -148,12 +148,12 @@ function ContextMenuRadioItem({
<ContextMenuPrimitive.RadioItem
data-slot="context-menu-radio-item"
className={cn(
- "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
className,
)}
{...props}
>
- <span className="pointer-events-none absolute right-2">
+ <span className="pointer-events-none absolute end-2">
<ContextMenuPrimitive.ItemIndicator>
<CheckIcon />
</ContextMenuPrimitive.ItemIndicator>
@@ -174,7 +174,7 @@ function ContextMenuLabel({
<ContextMenuPrimitive.Label
data-slot="context-menu-label"
data-inset={inset}
- className={cn("px-2 py-1.5 font-medium text-muted-foreground text-xs data-inset:pl-8", className)}
+ className={cn("px-2 py-1.5 font-medium text-muted-foreground text-xs data-inset:ps-8", className)}
{...props}
/>
);
diff --git a/src/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsx
index 1f49eee7a..342628119 100644
--- a/src/components/ui/dropdown-menu.tsx
+++ b/src/components/ui/dropdown-menu.tsx
@@ -79,7 +79,7 @@ function DropdownMenuItem({ className, inset, variant = "default", disabled, ...
data-inset={inset}
data-variant={variant}
className={cn(
- "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-inset:pl-8 data-[variant=destructive]:text-destructive data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 data-[variant=destructive]:*:[svg]:text-destructive!",
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-inset:ps-8 data-[variant=destructive]:text-destructive data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 data-[variant=destructive]:*:[svg]:text-destructive!",
"data-[variant=destructive]:data-highlighted:bg-destructive/10 data-[variant=destructive]:data-highlighted:text-destructive data-highlighted:bg-accent data-highlighted:text-accent-foreground dark:data-[variant=destructive]:data-highlighted:bg-destructive/20",
className,
)}
@@ -95,14 +95,14 @@ function DropdownMenuCheckboxItem({ className, children, checked, disabled, ...p
<DropdownMenuCheckboxItemPrimitive
disabled={disabled}
className={cn(
- "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 ps-8 pe-2 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
"data-highlighted:bg-accent data-highlighted:text-accent-foreground",
className,
)}
checked={checked}
{...props}
>
- <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
+ <span className="pointer-events-none absolute start-2 flex size-3.5 items-center justify-center">
<DropdownMenuItemIndicatorPrimitive initial={{ opacity: 0, scale: 0.5 }} animate={{ opacity: 1, scale: 1 }}>
<CheckIcon className="size-4" />
</DropdownMenuItemIndicatorPrimitive>
@@ -125,13 +125,13 @@ function DropdownMenuRadioItem({ className, children, disabled, ...props }: Drop
<DropdownMenuRadioItemPrimitive
disabled={disabled}
className={cn(
- "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 ps-8 pe-2 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
"data-highlighted:bg-accent data-highlighted:text-accent-foreground",
className,
)}
{...props}
>
- <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
+ <span className="pointer-events-none absolute start-2 flex size-3.5 items-center justify-center">
<DropdownMenuItemIndicatorPrimitive layoutId="dropdown-menu-item-indicator-radio">
<CircleIcon className="size-2 fill-current" />
</DropdownMenuItemIndicatorPrimitive>
@@ -149,7 +149,7 @@ function DropdownMenuLabel({ className, inset, ...props }: DropdownMenuLabelProp
return (
<DropdownMenuLabelPrimitive
data-inset={inset}
- className={cn("px-2 py-1.5 font-medium text-sm data-inset:pl-8", className)}
+ className={cn("px-2 py-1.5 font-medium text-sm data-inset:ps-8", className)}
{...props}
/>
);
@@ -188,7 +188,7 @@ function DropdownMenuSubTrigger({ disabled, className, inset, children, ...props
disabled={disabled}
data-inset={inset}
className={cn(
- "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-inset:pl-8 data-[state=open]:text-accent-foreground",
+ "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-inset:ps-8 data-[state=open]:text-accent-foreground",
"data-[state=open]:**:data-[slot=chevron]:rotate-90 **:data-[slot=chevron]:transition-transform **:data-[slot=chevron]:duration-300 **:data-[slot=chevron]:ease-in-out",
"data-highlighted:bg-accent data-highlighted:text-accent-foreground",
className,
diff --git a/src/components/ui/hover-card.tsx b/src/components/ui/hover-card.tsx
index 71a8acbe4..17b9296b2 100644
--- a/src/components/ui/hover-card.tsx
+++ b/src/components/ui/hover-card.tsx
@@ -23,7 +23,7 @@ function HoverCardContent({
align={align}
sideOffset={sideOffset}
className={cn(
- "data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-lg bg-popover p-4 text-popover-foreground text-sm shadow-md outline-hidden ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in",
+ "data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-lg bg-popover p-4 text-popover-foreground text-sm shadow-md outline-hidden ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in",
className,
)}
{...props}
diff --git a/src/components/ui/input-group.tsx b/src/components/ui/input-group.tsx
index 8cfa4de09..7d727a764 100644
--- a/src/components/ui/input-group.tsx
+++ b/src/components/ui/input-group.tsx
@@ -11,7 +11,7 @@ function InputGroup({ className, ...props }: React.ComponentProps<"div">) {
data-slot="input-group"
role="group"
className={cn(
- "group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs outline-none transition-[color,box-shadow] in-data-[slot=combobox-content]:focus-within:border-ring has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-start]]:h-auto has-[>textarea]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:flex-col has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-[3px] has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",
+ "group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs outline-none transition-[color,box-shadow] in-data-[slot=combobox-content]:focus-within:border-ring has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-start]]:h-auto has-[>textarea]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:flex-col has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-[3px] has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=inline-start]]:[&>input]:ps-1.5 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3",
className,
)}
{...props}
@@ -24,8 +24,8 @@ const inputGroupAddonVariants = cva(
{
variants: {
align: {
- "inline-start": "order-first pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]",
- "inline-end": "order-last pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]",
+ "inline-start": "order-first ps-2 has-[>button]:-ms-1 has-[>kbd]:ms-[-0.15rem]",
+ "inline-end": "order-last pe-2 has-[>button]:-me-1 has-[>kbd]:me-[-0.15rem]",
"block-start":
"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
"block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2",
diff --git a/src/components/ui/multiple-combobox.tsx b/src/components/ui/multiple-combobox.tsx
index 6dabb8702..112ffa09c 100644
--- a/src/components/ui/multiple-combobox.tsx
+++ b/src/components/ui/multiple-combobox.tsx
@@ -131,7 +131,7 @@ function MultipleCombobox<TValue extends string | number = string>({
) : (
<>
<span className="truncate">{selectionCount > 0 ? `${selectionCount} selected` : placeholder}</span>
- <CaretUpDownIcon aria-hidden className="ml-2 shrink-0 opacity-50" />
+ <CaretUpDownIcon aria-hidden className="ms-2 shrink-0 opacity-50" />
</>
);
diff --git a/src/components/ui/popover.tsx b/src/components/ui/popover.tsx
index 8958c8128..60453a23d 100644
--- a/src/components/ui/popover.tsx
+++ b/src/components/ui/popover.tsx
@@ -23,7 +23,7 @@ function PopoverContent({
align={align}
sideOffset={sideOffset}
className={cn(
- "data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 flex min-w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-popover-foreground text-sm shadow-md outline-hidden ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in",
+ "data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 flex min-w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-popover-foreground text-sm shadow-md outline-hidden ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in",
className,
)}
{...props}
diff --git a/src/components/ui/resizable.tsx b/src/components/ui/resizable.tsx
index 141fd9aba..8d2a93fdb 100644
--- a/src/components/ui/resizable.tsx
+++ b/src/components/ui/resizable.tsx
@@ -27,7 +27,7 @@ function ResizableSeparator({
<ResizablePrimitive.Separator
data-slot="resizable-handle"
className={cn(
- "relative flex w-px items-center justify-center bg-transparent transition-colors after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[separator='active']:bg-sky-700 data-[separator='hover']:bg-sky-700 data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
+ "relative flex w-px items-center justify-center bg-transparent transition-colors after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[separator='active']:bg-sky-700 data-[separator='hover']:bg-sky-700 data-[panel-group-direction=vertical]:after:start-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
className,
)}
{...props}
diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsx
index c3ffdd089..891986d83 100644
--- a/src/components/ui/sheet.tsx
+++ b/src/components/ui/sheet.tsx
@@ -50,7 +50,7 @@ function SheetContent({
data-slot="sheet-content"
data-side={side}
className={cn(
- "data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col gap-4 bg-background bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=top]:inset-x-0 data-[side=left]:inset-y-0 data-[side=right]:inset-y-0 data-[side=top]:top-0 data-[side=right]:right-0 data-[side=bottom]:bottom-0 data-[side=left]:left-0 data-[side=bottom]:h-auto data-[side=left]:h-full data-[side=right]:h-full data-[side=top]:h-auto data-[side=left]:w-3/4 data-[side=right]:w-3/4 data-closed:animate-out data-open:animate-in data-[side=bottom]:border-t data-[side=left]:border-r data-[side=top]:border-b data-[side=right]:border-l data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",
+ "data-[side=right]:data-closed:slide-out-to-end-10 data-[side=right]:data-open:slide-in-from-end-10 data-[side=left]:data-closed:slide-out-to-start-10 data-[side=left]:data-open:slide-in-from-start-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col gap-4 bg-background bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=top]:inset-x-0 data-[side=left]:inset-y-0 data-[side=right]:inset-y-0 data-[side=left]:start-0 data-[side=right]:end-0 data-[side=top]:top-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=left]:h-full data-[side=right]:h-full data-[side=top]:h-auto data-[side=left]:w-3/4 data-[side=right]:w-3/4 data-closed:animate-out data-open:animate-in data-[side=bottom]:border-t data-[side=left]:border-r data-[side=top]:border-b data-[side=right]:border-l data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",
className,
)}
{...props}
@@ -58,7 +58,7 @@ function SheetContent({
{children}
{showCloseButton && (
<SheetPrimitive.Close data-slot="sheet-close" asChild>
- <Button variant="ghost" className="absolute top-4 right-4" size="icon-sm">
+ <Button variant="ghost" className="absolute end-4 top-4" size="icon-sm">
<XIcon />
<span className="sr-only">Close</span>
</Button>
diff --git a/src/components/ui/sidebar.tsx b/src/components/ui/sidebar.tsx
index 0c7e2adce..3c47c5f76 100644
--- a/src/components/ui/sidebar.tsx
+++ b/src/components/ui/sidebar.tsx
@@ -203,8 +203,8 @@ function Sidebar({
className={cn(
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] ease-in-out md:flex",
side === "left"
- ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
- : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
+ ? "start-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
+ : "end-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
variant === "floating" || variant === "inset"
? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]"
: "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
@@ -258,12 +258,12 @@ function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {
onClick={toggleSidebar}
title="Toggle Sidebar"
className={cn(
- "absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-in-out after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
+ "absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-in-out after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:start-0 group-data-[side=left]:-end-4 sm:flex",
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
"group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full",
- "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
- "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
+ "[[data-side=left][data-collapsible=offcanvas]_&]:-end-2",
+ "[[data-side=right][data-collapsible=offcanvas]_&]:-start-2",
className,
)}
{...props}
@@ -277,7 +277,7 @@ function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {
data-slot="sidebar-inset"
className={cn(
"relative flex w-full flex-1 flex-col bg-background",
- "md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-md",
+ "md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-md",
className,
)}
{...props}
@@ -387,7 +387,7 @@ function SidebarGroupAction({
data-slot="sidebar-group-action"
data-sidebar="group-action"
className={cn(
- "absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
+ "absolute end-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
"after:absolute after:-inset-2 md:after:hidden",
"group-data-[collapsible=icon]:hidden",
className,
@@ -431,7 +431,7 @@ function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">) {
}
const sidebarMenuButtonVariants = cva(
- "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pe-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
{
variants: {
variant: {
@@ -512,7 +512,7 @@ function SidebarMenuAction({
data-slot="sidebar-menu-action"
data-sidebar="menu-action"
className={cn(
- "absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
+ "absolute end-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
"after:absolute after:-inset-2 md:after:hidden",
"peer-data-[size=sm]/menu-button:top-1",
"peer-data-[size=default]/menu-button:top-1.5",
@@ -533,7 +533,7 @@ function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">)
data-slot="sidebar-menu-badge"
data-sidebar="menu-badge"
className={cn(
- "pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 font-medium text-sidebar-foreground text-xs tabular-nums",
+ "pointer-events-none absolute end-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 font-medium text-sidebar-foreground text-xs tabular-nums",
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
"peer-data-[size=sm]/menu-button:top-1",
"peer-data-[size=default]/menu-button:top-1.5",
diff --git a/src/components/ui/switch.tsx b/src/components/ui/switch.tsx
index d699d82a2..2ecc8c494 100644
--- a/src/components/ui/switch.tsx
+++ b/src/components/ui/switch.tsx
@@ -34,7 +34,7 @@ function Switch({ className, pressedWidth = 20, startIcon, endIcon, thumbIcon, .
{thumbIcon && (
<SwitchIconPrimitive
position="thumb"
- className="-translate-1/2 absolute top-1/2 left-1/2 text-neutral-400 dark:text-neutral-500 [&_svg]:size-[9px]"
+ className="-translate-1/2 absolute start-1/2 top-1/2 text-neutral-400 dark:text-neutral-500 [&_svg]:size-[9px]"
>
{thumbIcon}
</SwitchIconPrimitive>
@@ -44,7 +44,7 @@ function Switch({ className, pressedWidth = 20, startIcon, endIcon, thumbIcon, .
{startIcon && (
<SwitchIconPrimitive
position="left"
- className="absolute top-1/2 left-0.5 -translate-y-1/2 text-neutral-400 dark:text-neutral-500 [&_svg]:size-[9px]"
+ className="absolute start-0.5 top-1/2 -translate-y-1/2 text-neutral-400 dark:text-neutral-500 [&_svg]:size-[9px]"
>
{startIcon}
</SwitchIconPrimitive>
@@ -52,7 +52,7 @@ function Switch({ className, pressedWidth = 20, startIcon, endIcon, thumbIcon, .
{endIcon && (
<SwitchIconPrimitive
position="right"
- className="absolute top-1/2 right-0.5 -translate-y-1/2 text-neutral-500 dark:text-neutral-400 [&_svg]:size-[9px]"
+ className="absolute end-0.5 top-1/2 -translate-y-1/2 text-neutral-500 dark:text-neutral-400 [&_svg]:size-[9px]"
>
{endIcon}
</SwitchIconPrimitive>
diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx
index 68dedc8e9..7ab798462 100644
--- a/src/components/ui/tabs.tsx
+++ b/src/components/ui/tabs.tsx
@@ -52,7 +52,7 @@ function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPr
"relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-full border border-transparent px-3 py-1 font-medium text-foreground/60 text-sm transition-all hover:text-foreground focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
"group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent",
"data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground",
- "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
+ "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-end-1 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
className,
)}
{...props}
diff --git a/src/components/ui/tooltip.tsx b/src/components/ui/tooltip.tsx
index 250294974..022d00598 100644
--- a/src/components/ui/tooltip.tsx
+++ b/src/components/ui/tooltip.tsx
@@ -30,7 +30,7 @@ function TooltipContent({
data-slot="tooltip-content"
sideOffset={sideOffset}
className={cn(
- "data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in",
+ "data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in",
className,
)}
{...props}
diff --git a/src/dialogs/auth/enable-two-factor.tsx b/src/dialogs/auth/enable-two-factor.tsx
index b688ce5a1..9abb7dc8d 100644
--- a/src/dialogs/auth/enable-two-factor.tsx
+++ b/src/dialogs/auth/enable-two-factor.tsx
@@ -283,11 +283,11 @@ export function EnableTwoFactorDialog(_: DialogProps<"auth.two-factor.enable">)
<div className="flex items-center gap-x-2">
<Button type="button" variant="outline" onClick={handleDownloadBackupCodes} className="flex-1">
- <ArrowDownIcon className="mr-2 size-4" />
+ <ArrowDownIcon className="me-2 size-4" />
<Trans>Download</Trans>
</Button>
<Button type="button" variant="ghost" onClick={handleCopyBackupCodes} className="flex-1">
- <CopyIcon className="mr-2 size-4" />
+ <CopyIcon className="me-2 size-4" />
<Trans>Copy</Trans>
</Button>
</div>
diff --git a/src/dialogs/resume/index.tsx b/src/dialogs/resume/index.tsx
index 98335da36..02d3c9b65 100644
--- a/src/dialogs/resume/index.tsx
+++ b/src/dialogs/resume/index.tsx
@@ -116,7 +116,7 @@ export function CreateResumeDialog(_: DialogProps<"resume.create">) {
<ResumeForm />
<DialogFooter>
- <ButtonGroup aria-label="Create Resume with Options" className="gap-x-px">
+ <ButtonGroup aria-label="Create Resume with Options" className="gap-x-px rtl:flex-row-reverse">
<Button type="submit" disabled={isPending}>
<Trans>Create</Trans>
</Button>
@@ -331,7 +331,7 @@ function ResumeForm() {
<InputGroupAddon align="inline-start" className="hidden sm:flex">
<InputGroupText>{slugPrefix}</InputGroupText>
</InputGroupAddon>
- <InputGroupInput min={1} max={64} className="pl-0!" {...field} />
+ <InputGroupInput min={1} max={64} className="ps-0!" {...field} />
</InputGroup>
</FormControl>
<FormMessage />
diff --git a/src/dialogs/resume/sections/interest.tsx b/src/dialogs/resume/sections/interest.tsx
index aac83c9f2..a1878f4ca 100644
--- a/src/dialogs/resume/sections/interest.tsx
+++ b/src/dialogs/resume/sections/interest.tsx
@@ -153,7 +153,7 @@ function InterestForm() {
render={({ field }) => (
<FormItem className="shrink-0">
<FormControl>
- <IconPicker {...field} popoverProps={{ modal: true }} className="rounded-r-none! border-r-0!" />
+ <IconPicker {...field} popoverProps={{ modal: true }} className="rounded-r-none! border-e-0!" />
</FormControl>
</FormItem>
)}
diff --git a/src/dialogs/resume/sections/profile.tsx b/src/dialogs/resume/sections/profile.tsx
index d45119353..3281f13c6 100644
--- a/src/dialogs/resume/sections/profile.tsx
+++ b/src/dialogs/resume/sections/profile.tsx
@@ -155,7 +155,7 @@ function ProfileForm() {
render={({ field }) => (
<FormItem className="shrink-0">
<FormControl>
- <IconPicker {...field} popoverProps={{ modal: true }} className="rounded-r-none! border-r-0!" />
+ <IconPicker {...field} popoverProps={{ modal: true }} className="rounded-r-none! border-e-0!" />
</FormControl>
</FormItem>
)}
diff --git a/src/dialogs/resume/sections/skill.tsx b/src/dialogs/resume/sections/skill.tsx
index 0d23d321c..d3c9bcb68 100644
--- a/src/dialogs/resume/sections/skill.tsx
+++ b/src/dialogs/resume/sections/skill.tsx
@@ -159,7 +159,7 @@ function SkillForm() {
render={({ field }) => (
<FormItem className="shrink-0">
<FormControl>
- <IconPicker {...field} popoverProps={{ modal: true }} className="rounded-r-none! border-r-0!" />
+ <IconPicker {...field} popoverProps={{ modal: true }} className="rounded-r-none! border-e-0!" />
</FormControl>
</FormItem>
)}
diff --git a/src/routes/$username/$slug.tsx b/src/routes/$username/$slug.tsx
index e63a56029..79a6214cf 100644
--- a/src/routes/$username/$slug.tsx
+++ b/src/routes/$username/$slug.tsx
@@ -79,7 +79,7 @@ function RouteComponent() {
size="lg"
variant="secondary"
disabled={isPrinting}
- className="fixed right-4 bottom-4 z-50 hidden rounded-full px-4 md:inline-flex print:hidden"
+ className="fixed end-4 bottom-4 z-50 hidden rounded-full px-4 md:inline-flex print:hidden"
onClick={handleDownload}
>
{isPrinting ? <Spinner /> : <DownloadSimpleIcon />}
diff --git a/src/routes/_home/-sections/donate.tsx b/src/routes/_home/-sections/donate.tsx
index 2dbc1bf5e..e09f5276d 100644
--- a/src/routes/_home/-sections/donate.tsx
+++ b/src/routes/_home/-sections/donate.tsx
@@ -131,8 +131,8 @@ export const DonationBanner = () => (
<FloatingIcon icon={HeartIcon} className="bottom-[20%] left-[20%]" delay={2.5} />
{/* Gradient Orbs */}
- <div className="absolute top-1/4 -left-32 size-64 rounded-full bg-primary/5 blur-3xl" />
- <div className="absolute -right-32 bottom-1/4 size-64 rounded-full bg-rose-500/5 blur-3xl" />
+ <div className="absolute -start-32 top-1/4 size-64 rounded-full bg-primary/5 blur-3xl" />
+ <div className="absolute -end-32 bottom-1/4 size-64 rounded-full bg-rose-500/5 blur-3xl" />
</div>
<div className="container relative px-8">
@@ -146,8 +146,8 @@ export const DonationBanner = () => (
>
<div aria-hidden="true" className="relative mb-6">
<PulsingHeart />
- <SparkleEffect className="-top-2 -right-4" />
- <SparkleEffect className="bottom-0 -left-3" />
+ <SparkleEffect className="-end-4 -top-2" />
+ <SparkleEffect className="-start-3 bottom-0" />
</div>
<motion.h2
diff --git a/src/routes/_home/-sections/faq.tsx b/src/routes/_home/-sections/faq.tsx
index b974e3996..4fe5e1504 100644
--- a/src/routes/_home/-sections/faq.tsx
+++ b/src/routes/_home/-sections/faq.tsx
@@ -66,11 +66,11 @@ export function FAQ() {
return (
<section
id="frequently-asked-questions"
- className="flex flex-col gap-x-16 gap-y-6 p-4 md:p-8 lg:flex-row lg:gap-x-24 xl:py-16"
+ className="flex flex-col gap-x-16 gap-y-6 p-4 md:p-8 lg:flex-row lg:gap-x-18 xl:py-16"
>
<motion.h2
className={cn(
- "font-semibold text-2xl tracking-tight md:text-4xl xl:text-5xl",
+ "flex-1 font-semibold text-2xl tracking-tight md:text-4xl xl:text-5xl",
"flex shrink-0 flex-wrap items-center gap-x-1.5 lg:flex-col lg:items-start",
)}
initial={{ opacity: 0, x: -20 }}
@@ -86,7 +86,7 @@ export function FAQ() {
</motion.h2>
<motion.div
- className="max-w-2xl flex-1 lg:ml-auto 2xl:max-w-3xl"
+ className="max-w-2xl flex-2 lg:ml-auto 2xl:max-w-3xl"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
diff --git a/src/routes/_home/-sections/footer.tsx b/src/routes/_home/-sections/footer.tsx
index af24fbf5a..419b1d527 100644
--- a/src/routes/_home/-sections/footer.tsx
+++ b/src/routes/_home/-sections/footer.tsx
@@ -134,7 +134,7 @@ function FooterLink({ url, label }: FooterLinkItem) {
initial={{ width: 0, opacity: 0 }}
animate={isHovered ? { width: "100%", opacity: 1 } : { width: 0, opacity: 0 }}
transition={{ duration: 0.25, ease: "easeOut" }}
- className="pointer-events-none absolute -bottom-0.5 left-0 h-px rounded bg-primary"
+ className="pointer-events-none absolute start-0 -bottom-0.5 h-px rounded bg-primary"
/>
</a>
</li>
diff --git a/src/routes/_home/-sections/hero.tsx b/src/routes/_home/-sections/hero.tsx
index 68d2c1c5f..154faf6b6 100644
--- a/src/routes/_home/-sections/hero.tsx
+++ b/src/routes/_home/-sections/hero.tsx
@@ -119,7 +119,7 @@ export function Hero() {
<motion.div
aria-hidden="true"
role="presentation"
- className="absolute bottom-8 left-1/2 -translate-x-1/2"
+ className="absolute start-1/2 bottom-8 -translate-x-1/2"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ delay: 2, duration: 1 }}
diff --git a/src/routes/_home/-sections/prefooter.tsx b/src/routes/_home/-sections/prefooter.tsx
index 16a2b9811..f6e1ef343 100644
--- a/src/routes/_home/-sections/prefooter.tsx
+++ b/src/routes/_home/-sections/prefooter.tsx
@@ -7,8 +7,8 @@ export function Prefooter() {
<section id="prefooter" className="relative overflow-hidden py-16 md:py-24">
{/* Background decoration */}
<div aria-hidden="true" className="pointer-events-none absolute inset-0">
- <div className="absolute top-0 left-1/4 size-96 rounded-full bg-primary/5 blur-3xl" />
- <div className="absolute right-1/4 bottom-0 size-96 rounded-full bg-primary/5 blur-3xl" />
+ <div className="absolute start-1/4 top-0 size-96 rounded-full bg-primary/5 blur-3xl" />
+ <div className="absolute end-1/4 bottom-0 size-96 rounded-full bg-primary/5 blur-3xl" />
</div>
<div className="relative space-y-8">
diff --git a/src/routes/_home/-sections/product-hunt-banner.tsx b/src/routes/_home/-sections/product-hunt-banner.tsx
index fc7bc7a57..c145de977 100644
--- a/src/routes/_home/-sections/product-hunt-banner.tsx
+++ b/src/routes/_home/-sections/product-hunt-banner.tsx
@@ -33,7 +33,7 @@ export function ProductHuntBanner() {
href="https://www.producthunt.com/products/reactive-resume/launches/reactive-resume-v5-2?embed=true&amp;utm_source=badge-featured&amp;utm_medium=badge&amp;utm_campaign=badge-reactive-resume-v5-2"
>
<Trans>Reactive Resume is launching on Product Hunt today, head over to show some love!</Trans>
- <HeartIcon weight="fill" color="#DA552F" className="ml-2 size-3.5" />
+ <HeartIcon weight="fill" color="#DA552F" className="ms-2 size-3.5" />
</a>
);
}
diff --git a/src/routes/_home/-sections/statistics.tsx b/src/routes/_home/-sections/statistics.tsx
index f84526fe5..53fcf480c 100644
--- a/src/routes/_home/-sections/statistics.tsx
+++ b/src/routes/_home/-sections/statistics.tsx
@@ -38,7 +38,7 @@ function StatisticCard({ statistic, index }: StatisticCardProps) {
return (
<motion.div
- className="group relative flex flex-col items-center justify-center gap-y-4 border-r border-b p-8 transition-colors last:border-r-0 hover:bg-secondary/30 sm:border-b-0 xl:py-12"
+ className="group relative flex flex-col items-center justify-center gap-y-4 border-r border-b p-8 transition-colors last:border-e-0 hover:bg-secondary/30 sm:border-b-0 xl:py-12"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: "-50px" }}
@@ -47,7 +47,7 @@ function StatisticCard({ statistic, index }: StatisticCardProps) {
{/* Background decoration */}
<div aria-hidden="true" className="pointer-events-none absolute inset-0 overflow-hidden">
<motion.div
- className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-primary/2"
+ className="absolute start-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary/2"
initial={{ scale: 0.8, opacity: 0 }}
whileInView={{ scale: 1, opacity: 1 }}
viewport={{ once: true }}
diff --git a/src/routes/_home/-sections/templates.tsx b/src/routes/_home/-sections/templates.tsx
index 004b4a2b3..ba2bffb10 100644
--- a/src/routes/_home/-sections/templates.tsx
+++ b/src/routes/_home/-sections/templates.tsx
@@ -23,7 +23,7 @@ function TemplateItem({ metadata }: TemplateItemProps) {
<div className="absolute inset-0 bg-linear-to-t from-black/70 via-black/20 to-transparent opacity-0 transition-opacity duration-300 group-hover:opacity-100" />
{/* Template name on hover */}
- <div className="absolute right-0 bottom-0 left-0 translate-y-full p-4 transition-transform duration-300 group-hover:translate-y-0">
+ <div className="absolute start-0 end-0 bottom-0 translate-y-full p-4 transition-transform duration-300 group-hover:translate-y-0">
<p className="font-semibold text-white drop-shadow-lg">{metadata.name}</p>
</div>
diff --git a/src/routes/_home/-sections/testimonials.tsx b/src/routes/_home/-sections/testimonials.tsx
index 96ceb4aac..2a4cdf5de 100644
--- a/src/routes/_home/-sections/testimonials.tsx
+++ b/src/routes/_home/-sections/testimonials.tsx
@@ -115,10 +115,10 @@ export function Testimonials() {
<div className="relative">
{/* Left fade */}
- <div className="pointer-events-none absolute top-0 bottom-0 left-0 z-10 w-16 bg-linear-to-r from-background to-transparent sm:w-24 md:w-32 lg:w-48" />
+ <div className="pointer-events-none absolute start-0 top-0 bottom-0 z-10 w-16 bg-linear-to-r from-background to-transparent sm:w-24 md:w-32 lg:w-48" />
{/* Right fade */}
- <div className="pointer-events-none absolute top-0 right-0 bottom-0 z-10 w-16 bg-linear-to-l from-background to-transparent sm:w-24 md:w-32 lg:w-48" />
+ <div className="pointer-events-none absolute end-0 top-0 bottom-0 z-10 w-16 bg-linear-to-l from-background to-transparent sm:w-24 md:w-32 lg:w-48" />
<div className="flex flex-col gap-y-6">
<MarqueeRow testimonials={row1} rowId="row1" direction="left" duration={50} />
diff --git a/src/routes/_home/route.tsx b/src/routes/_home/route.tsx
index 57072167d..7b5acccd2 100644
--- a/src/routes/_home/route.tsx
+++ b/src/routes/_home/route.tsx
@@ -11,7 +11,7 @@ function RouteComponent() {
<>
<a
href="#main-content"
- className="sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-100 focus:rounded-md focus:bg-background focus:px-4 focus:py-2 focus:text-foreground focus:shadow-lg focus:ring-2 focus:ring-ring"
+ className="sr-only focus:not-sr-only focus:fixed focus:start-4 focus:top-4 focus:z-100 focus:rounded-md focus:bg-background focus:px-4 focus:py-2 focus:text-foreground focus:shadow-lg focus:ring-2 focus:ring-ring"
>
<Trans>Skip to main content</Trans>
</a>
diff --git a/src/routes/builder/$resumeId/-components/edge.tsx b/src/routes/builder/$resumeId/-components/edge.tsx
index 9c09eed91..f7bfe4f05 100644
--- a/src/routes/builder/$resumeId/-components/edge.tsx
+++ b/src/routes/builder/$resumeId/-components/edge.tsx
@@ -10,7 +10,7 @@ export function BuilderSidebarEdge({ side, children }: Props) {
<div
className={cn(
"absolute inset-y-0 hidden w-12 flex-col items-center justify-between bg-popover py-2.5 sm:flex",
- side === "left" ? "left-0 border-r" : "right-0 border-l",
+ side === "left" ? "start-0 border-r" : "end-0 border-l",
)}
>
{children}
diff --git a/src/routes/builder/$resumeId/-components/header.tsx b/src/routes/builder/$resumeId/-components/header.tsx
index c30327b02..7d4e6be2a 100644
--- a/src/routes/builder/$resumeId/-components/header.tsx
+++ b/src/routes/builder/$resumeId/-components/header.tsx
@@ -44,9 +44,9 @@ export function BuilderHeader() {
<HouseSimpleIcon />
</Link>
</Button>
- <span className="mr-2.5 text-muted-foreground">/</span>
+ <span className="me-2.5 text-muted-foreground">/</span>
<h2 className="flex-1 truncate font-medium">{name}</h2>
- {isLocked && <LockSimpleIcon className="ml-2 text-muted-foreground" />}
+ {isLocked && <LockSimpleIcon className="ms-2 text-muted-foreground" />}
<BuilderHeaderDropdown />
</div>
@@ -131,24 +131,24 @@ function BuilderHeaderDropdown() {
<DropdownMenuContent>
<DropdownMenuItem disabled={isLocked} onSelect={handleUpdate}>
- <PencilSimpleLineIcon className="mr-2" />
+ <PencilSimpleLineIcon className="me-2" />
<Trans>Update</Trans>
</DropdownMenuItem>
<DropdownMenuItem onSelect={handleDuplicate}>
- <CopySimpleIcon className="mr-2" />
+ <CopySimpleIcon className="me-2" />
<Trans>Duplicate</Trans>
</DropdownMenuItem>
<DropdownMenuItem onSelect={handleToggleLock}>
- {isLocked ? <LockSimpleOpenIcon className="mr-2" /> : <LockSimpleIcon className="mr-2" />}
+ {isLocked ? <LockSimpleOpenIcon className="me-2" /> : <LockSimpleIcon className="me-2" />}
{isLocked ? <Trans>Unlock</Trans> : <Trans>Lock</Trans>}
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem variant="destructive" disabled={isLocked} onSelect={handleDelete}>
- <TrashSimpleIcon className="mr-2" />
+ <TrashSimpleIcon className="me-2" />
<Trans>Delete</Trans>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/src/routes/builder/$resumeId/-sidebar/left/index.tsx b/src/routes/builder/$resumeId/-sidebar/left/index.tsx
index 3aa54c2b7..4436e0fcf 100644
--- a/src/routes/builder/$resumeId/-sidebar/left/index.tsx
+++ b/src/routes/builder/$resumeId/-sidebar/left/index.tsx
@@ -54,7 +54,7 @@ export function BuilderSidebarLeft() {
<>
<SidebarEdge scrollAreaRef={scrollAreaRef} />
- <ScrollArea ref={scrollAreaRef} className="@container h-[calc(100svh-3.5rem)] bg-background sm:ml-12">
+ <ScrollArea ref={scrollAreaRef} className="@container h-[calc(100svh-3.5rem)] bg-background sm:ms-12">
<div className="space-y-4 p-4">
{leftSidebarSections.map((section) => (
<Fragment key={section}>
diff --git a/src/routes/builder/$resumeId/-sidebar/left/sections/custom-fields.tsx b/src/routes/builder/$resumeId/-sidebar/left/sections/custom-fields.tsx
index 27daeaa79..227fe436d 100644
--- a/src/routes/builder/$resumeId/-sidebar/left/sections/custom-fields.tsx
+++ b/src/routes/builder/$resumeId/-sidebar/left/sections/custom-fields.tsx
@@ -58,7 +58,7 @@ export function CustomFieldsSection({ onSubmit }: Props) {
<FormControl>
<IconPicker
{...field}
- className="rounded-r-none! border-r-0!"
+ className="rounded-r-none! border-e-0!"
onChange={(icon) => {
field.onChange(icon);
form.handleSubmit(onSubmit)();
@@ -90,7 +90,7 @@ export function CustomFieldsSection({ onSubmit }: Props) {
<Popover>
<PopoverTrigger asChild>
- <Button size="icon" variant="ghost" className="ml-1">
+ <Button size="icon" variant="ghost" className="ms-1">
<LinkIcon />
</Button>
</PopoverTrigger>
@@ -155,7 +155,7 @@ function CustomFieldItem({ field, children }: CustomFieldItemProps) {
<Button
size="icon"
variant="ghost"
- className="mr-2 touch-none"
+ className="me-2 touch-none"
onPointerDown={(e) => {
e.preventDefault();
controls.start(e);
diff --git a/src/routes/builder/$resumeId/-sidebar/left/shared/section-base.tsx b/src/routes/builder/$resumeId/-sidebar/left/shared/section-base.tsx
index 013ba8187..65e2c4757 100644
--- a/src/routes/builder/$resumeId/-sidebar/left/shared/section-base.tsx
+++ b/src/routes/builder/$resumeId/-sidebar/left/shared/section-base.tsx
@@ -36,7 +36,7 @@ export function SectionBase({ type, className, ...props }: Props) {
>
<AccordionItem value={type} className="group/accordion space-y-4">
<div className="flex items-center">
- <AccordionTrigger asChild className="mr-2 items-center justify-center">
+ <AccordionTrigger asChild className="me-2 items-center justify-center">
<Button size="icon" variant="ghost">
<CaretRightIcon />
</Button>
diff --git a/src/routes/builder/$resumeId/-sidebar/left/shared/section-item.tsx b/src/routes/builder/$resumeId/-sidebar/left/shared/section-item.tsx
index 3afd03095..fc97c2812 100644
--- a/src/routes/builder/$resumeId/-sidebar/left/shared/section-item.tsx
+++ b/src/routes/builder/$resumeId/-sidebar/left/shared/section-item.tsx
@@ -244,7 +244,7 @@ export function SectionItem<T extends SectionItemType>({ type, item, title, subt
<button
onClick={onUpdate}
className={cn(
- "flex flex-1 flex-col items-start justify-center space-y-0.5 pl-1.5 text-start opacity-100 transition-opacity hover:bg-secondary/40 focus:outline-none focus-visible:ring-1",
+ "flex flex-1 flex-col items-start justify-center space-y-0.5 ps-1.5 text-start opacity-100 transition-opacity hover:bg-secondary/40 focus:outline-none focus-visible:ring-1",
item.hidden && "opacity-50",
)}
>
diff --git a/src/routes/builder/$resumeId/-sidebar/right/index.tsx b/src/routes/builder/$resumeId/-sidebar/right/index.tsx
index bb5e0e7e2..06b9e18f5 100644
--- a/src/routes/builder/$resumeId/-sidebar/right/index.tsx
+++ b/src/routes/builder/$resumeId/-sidebar/right/index.tsx
@@ -47,7 +47,7 @@ export function BuilderSidebarRight() {
<>
<SidebarEdge scrollAreaRef={scrollAreaRef} />
- <ScrollArea ref={scrollAreaRef} className="@container h-[calc(100svh-3.5rem)] bg-background sm:mr-12">
+ <ScrollArea ref={scrollAreaRef} className="@container h-[calc(100svh-3.5rem)] bg-background sm:me-12">
<div className="space-y-4 p-4">
{rightSidebarSections.map((section) => (
<Fragment key={section}>
diff --git a/src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx b/src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
index 175ee809c..93f4a60c4 100644
--- a/src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
+++ b/src/routes/builder/$resumeId/-sidebar/right/sections/layout/index.tsx
@@ -24,13 +24,15 @@ const formSchema = metadataSchema.shape.layout.omit({ pages: true });
type FormValues = z.infer<typeof formSchema>;
function LayoutSectionForm() {
- const sidebarWidth = useResumeStore((state) => state.resume.data.metadata.layout.sidebarWidth);
+ const layout = useResumeStore((state) => state.resume.data.metadata.layout);
const updateResumeData = useResumeStore((state) => state.updateResumeData);
const form = useForm<FormValues>({
mode: "onChange",
resolver: zodResolver(formSchema),
- defaultValues: { sidebarWidth },
+ defaultValues: {
+ sidebarWidth: layout.sidebarWidth,
+ },
});
const onSubmit = (data: FormValues) => {
diff --git a/src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx b/src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
index fd9248b89..8817c4cec 100644
--- a/src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
+++ b/src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
@@ -293,7 +293,7 @@ function LayoutColumn({ pageIndex, columnId, items, disabled = false }: LayoutCo
return (
<SortableContext id={droppableId} items={items} strategy={verticalListSortingStrategy}>
<div className={cn("space-y-1.5", disabled && "opacity-50")}>
- <div className="@md:row-start-1 pl-4 font-medium text-xs">{getColumnLabel(columnId)}</div>
+ <div className="@md:row-start-1 ps-4 font-medium text-xs">{getColumnLabel(columnId)}</div>
<div
ref={setNodeRef}
diff --git a/src/routes/builder/$resumeId/-sidebar/right/shared/section-base.tsx b/src/routes/builder/$resumeId/-sidebar/right/shared/section-base.tsx
index 3f51cf231..124013469 100644
--- a/src/routes/builder/$resumeId/-sidebar/right/shared/section-base.tsx
+++ b/src/routes/builder/$resumeId/-sidebar/right/shared/section-base.tsx
@@ -24,7 +24,7 @@ export function SectionBase({ type, className, ...props }: Props) {
>
<AccordionItem value={type} className="group/accordion space-y-4">
<div className="flex items-center">
- <AccordionTrigger asChild className="mr-2 items-center justify-center">
+ <AccordionTrigger asChild className="me-2 items-center justify-center">
<Button size="icon" variant="ghost">
<CaretRightIcon />
</Button>
diff --git a/src/routes/dashboard/-components/header.tsx b/src/routes/dashboard/-components/header.tsx
index 2ff152334..3a1b0a3b8 100644
--- a/src/routes/dashboard/-components/header.tsx
+++ b/src/routes/dashboard/-components/header.tsx
@@ -11,7 +11,7 @@ type Props = {
export function DashboardHeader({ title, icon: IconComponent, className }: Props) {
return (
<div className={cn("relative flex items-center justify-center gap-x-2.5 md:justify-start", className)}>
- <SidebarTrigger className="absolute left-0 md:hidden" />
+ <SidebarTrigger className="absolute start-0 md:hidden" />
<IconComponent weight="light" className="size-5" />
<h1 className="font-medium text-xl tracking-tight">{title}</h1>
</div>
diff --git a/src/routes/dashboard/-components/sidebar.tsx b/src/routes/dashboard/-components/sidebar.tsx
index 8bbe9e8ca..c6851af39 100644
--- a/src/routes/dashboard/-components/sidebar.tsx
+++ b/src/routes/dashboard/-components/sidebar.tsx
@@ -95,7 +95,7 @@ function SidebarItemList({ items }: SidebarItemListProps) {
<SidebarMenuButton asChild title={i18n.t(item.label)}>
<Link to={item.href} activeProps={{ className: "bg-sidebar-accent" }}>
{item.icon}
- <span className="shrink-0 transition-[margin,opacity] duration-200 ease-in-out group-data-[collapsible=icon]:-ml-8 group-data-[collapsible=icon]:opacity-0">
+ <span className="shrink-0 transition-[margin,opacity] duration-200 ease-in-out group-data-[collapsible=icon]:-ms-8 group-data-[collapsible=icon]:opacity-0">
{i18n.t(item.label)}
</span>
</Link>
@@ -161,7 +161,7 @@ export function DashboardSidebar() {
</AvatarFallback>
</Avatar>
- <div className="transition-[margin,opacity] duration-200 ease-in-out group-data-[collapsible=icon]:-ml-8 group-data-[collapsible=icon]:opacity-0">
+ <div className="transition-[margin,opacity] duration-200 ease-in-out group-data-[collapsible=icon]:-ms-8 group-data-[collapsible=icon]:opacity-0">
<p className="font-medium">{session.user.name}</p>
<p className="text-muted-foreground text-xs">{session.user.email}</p>
</div>
diff --git a/src/routes/dashboard/resumes/index.tsx b/src/routes/dashboard/resumes/index.tsx
index 8a80709fb..cd646dcb7 100644
--- a/src/routes/dashboard/resumes/index.tsx
+++ b/src/routes/dashboard/resumes/index.tsx
@@ -73,7 +73,7 @@ function RouteComponent() {
<Separator />
- <div className="flex items-center">
+ <div className="flex items-center gap-x-4">
<Combobox
value={sort}
options={sortOptions}
@@ -116,7 +116,7 @@ function RouteComponent() {
}}
/>
- <Tabs className="ml-auto" value={view} onValueChange={onViewChange}>
+ <Tabs className="ltr:ms-auto rtl:me-auto" value={view} onValueChange={onViewChange}>
<TabsList>
<TabsTrigger value="grid" className="rounded-r-none">
<GridFourIcon />
diff --git a/src/routes/dashboard/route.tsx b/src/routes/dashboard/route.tsx
index 99fbd4bb5..53223b294 100644
--- a/src/routes/dashboard/route.tsx
+++ b/src/routes/dashboard/route.tsx
@@ -29,7 +29,7 @@ function RouteComponent() {
<SidebarProvider open={sidebarState} onOpenChange={handleSidebarOpenChange}>
<DashboardSidebar />
- <main className="@container flex-1 p-4 md:pl-2">
+ <main className="@container flex-1 p-4 md:ps-2">
<Outlet />
</main>
</SidebarProvider>
diff --git a/src/routes/dashboard/settings/authentication/-components/passkeys.tsx b/src/routes/dashboard/settings/authentication/-components/passkeys.tsx
index 18a9e13da..6566f146d 100644
--- a/src/routes/dashboard/settings/authentication/-components/passkeys.tsx
+++ b/src/routes/dashboard/settings/authentication/-components/passkeys.tsx
@@ -104,7 +104,7 @@ function PasskeyItem({ passkey }: PasskeyItemProps) {
<TrashSimpleIcon />
</Button>
- <span className="mx-2 truncate text-nowrap border-r pr-2 font-medium">{passkey.name ?? "1Password"}</span>
+ <span className="mx-2 truncate text-nowrap border-r pe-2 font-medium">{passkey.name ?? "1Password"}</span>
<span className="flex-1 truncate text-nowrap text-muted-foreground text-xs">
<Trans>Added on {passkey.createdAt.toLocaleDateString()}</Trans>
diff --git a/src/styles/globals.css b/src/styles/globals.css
index c35902640..525a38ae6 100644
--- a/src/styles/globals.css
+++ b/src/styles/globals.css
@@ -163,3 +163,24 @@
scroll-behavior: auto !important;
}
}
+
+.resume-preview-container {
+ .page-section .section-item {
+ break-inside: avoid;
+ }
+}
+
+/* Fix for ScrollArea viewport width overflow */
+[data-slot="scroll-area-viewport"] > div {
+ box-sizing: border-box !important;
+ display: block !important;
+ width: 100% !important;
+ min-width: 0 !important;
+ max-width: 100% !important;
+}
+
+[data-slot="scroll-area-viewport"] {
+ box-sizing: border-box !important;
+ width: 100% !important;
+ max-width: 100% !important;
+}
diff --git a/src/utils/locale.ts b/src/utils/locale.ts
index 9b38fca8c..bb013f0db 100644
--- a/src/utils/locale.ts
+++ b/src/utils/locale.ts
@@ -1,8 +1,10 @@
import { i18n, type MessageDescriptor, type Messages } from "@lingui/core";
import { msg } from "@lingui/core/macro";
+import { useLingui } from "@lingui/react";
import { createIsomorphicFn, createServerFn } from "@tanstack/react-start";
import { getCookie, setCookie } from "@tanstack/react-start/server";
import Cookies from "js-cookie";
+import { useMemo } from "react";
import z from "zod";
const localeSchema = z.union([
@@ -144,6 +146,12 @@ export function isRTL(locale: string): boolean {
return RTL_LANGUAGES.has(language);
}
+export function useIsRTL() {
+ const { i18n } = useLingui();
+
+ return useMemo(() => isRTL(i18n.locale), [i18n.locale]);
+}
+
export const getLocale = createIsomorphicFn()
.client(() => {
const locale = Cookies.get(storageKey);