diff --git a/app/Http/Requests/Bo/News/StoreNewsRequest.php b/app/Http/Requests/Bo/News/StoreNewsRequest.php index f7c0b3a..f8da419 100644 --- a/app/Http/Requests/Bo/News/StoreNewsRequest.php +++ b/app/Http/Requests/Bo/News/StoreNewsRequest.php @@ -58,7 +58,7 @@ class StoreNewsRequest extends FormRequest ]; return \array_merge( $rules, - $this->pictureRules('picture', 500, 400, 500, 400, true), + $this->pictureRules('picture', 330, 210, 330, 210, true), $this->pictureRules('thumbnail', 300, 200, 300, 200, true), ); } diff --git a/resources/views/bo/pages/news/form.blade.php b/resources/views/bo/pages/news/form.blade.php index 8052eb1..dc1d027 100644 --- a/resources/views/bo/pages/news/form.blade.php +++ b/resources/views/bo/pages/news/form.blade.php @@ -244,12 +244,12 @@ @include('bo.partials.inputs.varchar-picture', [ 'id' => 'newsPicture', 'name' => 'picture', - 'width' => 500, - 'height' => 400, + 'width' => 330, + 'height' => 210, 'model' => $newsModel ?? null, 'helper' => __('crud.minicrud.dimensions_must_be', [ - 'widthpx' => '500px', - 'heightpx' => '400px', + 'widthpx' => '330px', + 'heightpx' => '210px', ]), 'required' => true, 'preview' => true, @@ -386,4 +386,4 @@
{{ __('validation.custom.required_fields') }}