Fix product pictogram display
This commit is contained in:
parent
4e6f5e4f75
commit
4199905e5d
4 changed files with 7 additions and 4 deletions
|
|
@ -28,7 +28,7 @@ class ProductPictogramsController extends Controller
|
|||
|
||||
$request->validate([
|
||||
'name' => 'required|max:50',
|
||||
'picture' => 'required|image|mimes:jpeg,png,jpg|max:2048|dimensions:max-width=95,max-height=80',
|
||||
'picture' => 'required|image|mimes:jpeg,png,jpg|max:2048|dimensions:max-width=150,max-height=80',
|
||||
]);
|
||||
|
||||
$imageName = Str::slug($name) . '.' . $picture->extension();
|
||||
|
|
@ -55,7 +55,7 @@ class ProductPictogramsController extends Controller
|
|||
|
||||
$request->validate([
|
||||
'name' => 'required|max:50',
|
||||
'picture' => 'required|image|mimes:jpeg,png,jpg|max:2048|dimensions:max-width=95,max-height=80',
|
||||
'picture' => 'required|image|mimes:jpeg,png,jpg|max:2048|dimensions:max-width=150,max-height=80',
|
||||
]);
|
||||
|
||||
$imageName = Str::slug($name) . '.' . $picture->extension();
|
||||
|
|
|
|||
3
resources/sass/front/_sub_header.scss
vendored
3
resources/sass/front/_sub_header.scss
vendored
|
|
@ -692,6 +692,9 @@
|
|||
|
||||
& > img {
|
||||
margin-right: 25px;
|
||||
max-width: 8rem;
|
||||
height: auto;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
& .infos {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
<input type="text" class="form-control" name="name" placeholder="Nom" value="{{ old('name') }}" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Image de type JPEG/PNG - 2Mo max. - 95 x 80px</label>
|
||||
<label>Image de type JPEG/PNG - 2Mo max. - 150 x 80px</label>
|
||||
<input type="file" name="picture" accept="image/png, image/jpeg" required>
|
||||
</div>
|
||||
<div class="form-group text-center">
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
<input type="text" class="form-control" name="name" placeholder="Nom" value="{{$pp->name}}" readonly required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Image de type JPEG/PNG - 2Mo max. - 95 x 80px</label>
|
||||
<label>Image de type JPEG/PNG - 2Mo max. - 150 x 80px</label>
|
||||
<input type="file" name="picture" accept="image/png, image/jpeg" required>
|
||||
</div>
|
||||
<div class="form-group text-center">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue