fixed ui bugs

pull/49/head
A1Gard 2 months ago
parent 981ffabf07
commit 63c021658e

@ -23,6 +23,10 @@ class ThemeController extends Controller
} }
} }
$response .= '}'; $response .= '}';
if (langIsRTL(app()->getLocale())) {
$response .= ' .slider-content, .tns-outer .item{ direction: rtl; }';
}
return response($response)->header('Content-Type', 'text/css; charset=utf-8'); return response($response)->header('Content-Type', 'text/css; charset=utf-8');
} }
} }

@ -1,4 +1,5 @@
.tns-outer { .tns-outer {
direction: ltr;
.tns-nav, button { .tns-nav, button {
display: none; display: none;
} }

@ -11,7 +11,7 @@
<div class="section-main"> <div class="section-main">
@foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_category') as $product) @foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_category') as $product)
<div class="item"> <div class="item slider-content">
<div class="tree-product-box"> <div class="tree-product-box">
<a href="{{$product->webUrl()}}"> <a href="{{$product->webUrl()}}">
<img src="{{$product->imgUrl()}}" alt="{{$product->name}}"> <img src="{{$product->imgUrl()}}" alt="{{$product->name}}">
@ -46,7 +46,7 @@
<div class="section-second"> <div class="section-second">
@foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_categoryx') as $product) @foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_categoryx') as $product)
<div class="item text-center"> <div class="item text-center slider-content">
<a href="{{$product->webUrl()}}"> <a href="{{$product->webUrl()}}">
<img src="{{$product->imgUrl()}}" class="img-fluid" alt="{{$product->name}}"> <img src="{{$product->imgUrl()}}" class="img-fluid" alt="{{$product->name}}">
</a> </a>
@ -61,7 +61,7 @@
<div class="section-third"> <div class="section-third">
@foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_categoryy') as $product) @foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_categoryy') as $product)
<div class="item text-center"> <div class="item text-center slider-content">
<a href="{{$product->webUrl()}}"> <a href="{{$product->webUrl()}}">
<img src="{{$product->imgUrl()}}" class="img-fluid" alt="{{$product->name}}"> <img src="{{$product->imgUrl()}}" class="img-fluid" alt="{{$product->name}}">
</a> </a>

Loading…
Cancel
Save