File tree Expand file tree Collapse file tree
src/app/[lang]/news/components/BreakingNewsSlider Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export default function BreakingNewsSliderClient({
2020} : any ) {
2121 const [ ready , setReady ] = useState ( false ) ;
2222 const initDone = useRef ( false ) ;
23-
23+ const isRTL = lang === "fa" ;
2424 return (
2525 < div className = "relative w-full h-full" >
2626 { /* ✅ Skeleton واقعاً paint میشود */ }
@@ -79,8 +79,8 @@ export default function BreakingNewsSliderClient({
7979 < path d = "M24.5872 1.86955L26.2543 1.27784L3.54634 52.8965L2.88089 51.112L24.5872 1.86955Z" fill = "#F10011" />
8080 < path d = "M20.8645 2.40607L21.9633 1.64997L0.699874 49.8665L0.553442 48.4093L20.8645 2.40607Z" fill = "#F10011" />
8181 < path d = "M178.377 1H333.736L310.986 57H178.377L155.66 32.1512C154.281 30.6432 154.261 28.3385 155.613 26.8062L178.377 1Z" fill = "white" className = "dark:fill-black" />
82- < text className = "fill-black dark:fill-white" > < tspan x = " 270" y = "36.3237" className = "text-xl lg:text-3xl !font-rokh !font-extrabold !text-black dark:!text-white" > { findByUniqueId ( mainData , 1616 ) || "خبر" } </ tspan > </ text >
83- < text className = "fill-black dark:fill-white" > < tspan x = " 120" y = "36.3237" className = "text-xl lg:text-3xl !font-rokh !font-extrabold !text-black dark:!text-white" > { findByUniqueId ( mainData , 1617 ) || "فوری" } </ tspan > </ text >
82+ < text className = "fill-black dark:fill-white" > < tspan x = { isRTL ? 270 : 260 } y = "36.3237" className = "text-xl lg:text-3xl !font-rokh !font-extrabold !text-black dark:!text-white" > { findByUniqueId ( mainData , 1616 ) || "خبر" } </ tspan > </ text >
83+ < text className = "fill-black dark:fill-white" > < tspan x = { isRTL ? 120 : 70 } y = "36.3237" className = "text-xl lg:text-3xl !font-rokh !font-extrabold !text-black dark:!text-white" > { findByUniqueId ( mainData , 1617 ) || "فوری" } </ tspan > </ text >
8484 </ svg >
8585 </ div >
8686
You can’t perform that action at this time.
0 commit comments