Compare commits

...

2 Commits

Author SHA1 Message Date
A1Gard 685afb3bcc fixed 5 rate bug 2 months ago
A1Gard 042a4d6d75 fixed responsive ui 2 months ago

@ -846,7 +846,7 @@ class ClientController extends Controller
} else { } else {
$rate = new Rate(); $rate = new Rate();
} }
if ($rt > 0 && $rt < 5) { if ($rt > 0 && $rt <= 5) {
$rate->rater_type = Customer::class; $rate->rater_type = Customer::class;
$rate->rater_id = auth('customer')->id(); $rate->rater_id = auth('customer')->id();
$rate->rateable_type = $request->rateable_type; $rate->rateable_type = $request->rateable_type;

@ -29,7 +29,7 @@
<div class="col-lg-6"> <div class="col-lg-6">
<a class="pedi-product" href="{{$product->webUrl()}}"> <a class="pedi-product" href="{{$product->webUrl()}}">
<img src="{{$product->thumbUrl()}}" alt="{{$product->name}}" class="float-start"> <img src="{{$product->thumbUrl()}}" alt="{{$product->name}}" class="float-start">
<span> <span class="price">
{{$product->getPrice()}} {{$product->getPrice()}}
</span> </span>
<h4> <h4>

@ -88,6 +88,7 @@
top: 1rem; top: 1rem;
position: absolute; position: absolute;
font-size: 20px; font-size: 20px;
color: var(--xshop-secondary);
} }
h4 { h4 {
@ -124,4 +125,22 @@
position: relative; position: relative;
} }
} }
}
/*-600px width*/
@media (max-width: 600px) {
.PedramProducts {
.price {
position: absolute;
bottom: 1rem;
inset-inline-end: 1rem;
top: auto !important;
background: var(--xshop-background);
padding: 4px 10px 0 ;
border: 1px solid var(--xshop-secondary);
border-radius: var(--xshop-border-radius);
}
}
} }

Loading…
Cancel
Save