Skip to content

Commit

Permalink
fixed ui bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Sep 9, 2024
1 parent 981ffab commit 63c0216
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
4 changes: 4 additions & 0 deletions app/Http/Controllers/ThemeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public function cssVariables()
}
}
$response .= '}';

if (langIsRTL(app()->getLocale())) {
$response .= ' .slider-content, .tns-outer .item{ direction: rtl; }';
}
return response($response)->header('Content-Type', 'text/css; charset=utf-8');
}
}
1 change: 1 addition & 0 deletions resources/sass/client-custom/_zfix.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.tns-outer {
direction: ltr;
.tns-nav, button {
display: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<div class="section-main">
@foreach(getCategoryProductBySetting($part->area->name . '_' . $part->part.'_category') as $product)
<div class="item">
<div class="item slider-content">
<div class="tree-product-box">
<a href="{{$product->webUrl()}}">
<img src="{{$product->imgUrl()}}" alt="{{$product->name}}">
Expand Down Expand Up @@ -46,7 +46,7 @@

<div class="section-second">
@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()}}">
<img src="{{$product->imgUrl()}}" class="img-fluid" alt="{{$product->name}}">
</a>
Expand All @@ -61,7 +61,7 @@

<div class="section-third">
@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()}}">
<img src="{{$product->imgUrl()}}" class="img-fluid" alt="{{$product->name}}">
</a>
Expand Down
12 changes: 6 additions & 6 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,10 @@ function () {
// to developer test
Route::get('login/as/{mobile}', function ($mobile) {
if (auth()->check() && auth()->user()->hasRole('developer')) {
if ($mobile = 1){
if ($mobile = 1) {
return \Auth::guard('customer')
->loginUsingId(\App\Models\Customer::inRandomOrder()->first()->id);
}else{
} else {
return \Auth::guard('customer')
->loginUsingId(\App\Models\Customer::where('mobile', $mobile)->first()->id);
}
Expand Down Expand Up @@ -463,10 +463,10 @@ function () {

Route::any('{lang}/{any}', [ClientController::class, 'lang'])
->where('any', '.*')
->where('lang','[A-Za-z]{2}')
->middleware([\App\Http\Middleware\LangControl::class,\App\Http\Middleware\VisitorCounter::class]);
->where('lang', '[A-Za-z]{2}')
->middleware([\App\Http\Middleware\LangControl::class, \App\Http\Middleware\VisitorCounter::class]);
Route::any('{lang}', [ClientController::class, 'langIndex'])
->where('lang','[A-Za-z]{2}')
->middleware([\App\Http\Middleware\LangControl::class,\App\Http\Middleware\VisitorCounter::class]);
->where('lang', '[A-Za-z]{2}')
->middleware([\App\Http\Middleware\LangControl::class, \App\Http\Middleware\VisitorCounter::class]);


0 comments on commit 63c0216

Please sign in to comment.