fix(app): complete shared RTL primitives (#40388)

Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot]
2026-08-04 07:38:56 +00:00
committed by GitHub
parent 868524c102
commit 3ef515f3a1
8 changed files with 36 additions and 14 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import { Toaster, toast, type ToasterProps } from "solid-sonner"
import { isRTL } from "@kobalte/core/i18n"
import type { ComponentProps, JSX } from "solid-js"
import { createContext, onCleanup, onMount, splitProps, useContext } from "solid-js"
import { Portal } from "solid-js/web"
@@ -46,8 +47,8 @@ function ToastV2Region(props: ToastV2RegionProps) {
return (
<Portal>
<Toaster
position="bottom-right"
offset={{ right: 32, bottom: 48 }}
position={isRTL(i18n.locale()) ? "bottom-left" : "bottom-right"}
offset={isRTL(i18n.locale()) ? { left: 32, bottom: 48 } : { right: 32, bottom: 48 }}
mobileOffset={16}
gap={12}
duration={5000}