Fixes #172 Add slider max content length + remove slider max height breaking front slider display

This commit is contained in:
Jérémy Munsch 2023-08-09 11:27:21 +02:00
parent 27458eae63
commit a1ff80a16b
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
3 changed files with 2 additions and 7 deletions

View file

@ -43,7 +43,7 @@ class StoreSlideRequest extends FormRequest
{
$rules = [
'title' => 'required|min:3|max:255',
'content' => 'required|string|min:15',
'content' => 'required|string|min:15|max:540',
'button_display' => 'required|boolean',
'button_text' => 'nullable|min:3|max:45',
'button_url' => 'nullable|min:3|max:255|url',

View file

@ -6,11 +6,6 @@
height: 100%;
}
.sliders-wrapper,
.swiper-hero .img-slide,
.swiper-options-wrapper .shadow-img,
.swiper-options-wrapper .shadow-txt { max-height: 700px; }
$thumbs-height: 10%;
.swiper-hero .slide-txt { max-height: calc(100% - $thumbs-height); }
.swiper-hero .img-slide { filter: brightness(40%); }

View file

@ -1,5 +1,5 @@
// import Swiper JS
import Swiper, { Navigation, Pagination, Autoplay } from "swiper";
import Swiper, { Autoplay, Navigation, Pagination } from "swiper";
document.addEventListener("DOMContentLoaded", function () {
const swiperConfig = {