2924f716d4
Five-layer defense so that no single library/browser quirk can flip the layout back to LTR: 1. <body dir="rtl"> in addition to <html dir="rtl"> — some libs read document.body.dir, not document.documentElement.dir. 2. Explicit `direction: rtl` on html, body in the @layer base CSS. 3. <DirectionProvider dir="rtl"> from @radix-ui/react-direction wrapping the React tree, so every Radix primitive (Tabs, Dialog, Select, Popover, Toast) gets RTL context — Radix's useDirection defaults to "ltr" without it. 4. shadcn Tabs wrapper now defaults its dir prop to "rtl" — redundant with the provider above, but defends against a future provider removal silently breaking Tabs. 5. dir="rtl" set explicitly on each <table> element. Fixes the symptom seen on the live site: deals/appraisals tables had תאריך (the first <th> in the JSX) rendering on the LEFT instead of the RIGHT, and Tabs flowed עסקאות→שמאי left-to-right instead of the expected right-to-left. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
"name": "nadlan-mcp-web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"typecheck": "tsc --noEmit",
|
|
"preview": "vite preview",
|
|
"lint": "eslint . --ext ts,tsx --max-warnings=0"
|
|
},
|
|
"dependencies": {
|
|
"@radix-ui/react-direction": "^1.1.1",
|
|
"@radix-ui/react-icons": "^1.3.2",
|
|
"@radix-ui/react-label": "^2.1.0",
|
|
"@radix-ui/react-slot": "^1.1.1",
|
|
"@radix-ui/react-tabs": "^1.1.2",
|
|
"@radix-ui/react-toast": "^1.2.4",
|
|
"@tanstack/react-query": "^5.62.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"lucide-react": "^0.468.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"tailwind-merge": "^2.5.5",
|
|
"tailwindcss-animate": "^1.0.7"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.10.0",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"autoprefixer": "^10.4.20",
|
|
"postcss": "^8.4.49",
|
|
"tailwindcss": "^3.4.16",
|
|
"typescript": "^5.7.2",
|
|
"vite": "^6.0.0"
|
|
}
|
|
}
|