carroussel actus home debugg js

This commit is contained in:
2025-03-13 14:21:29 +01:00
parent f4208a492e
commit 9c6643200d
4 changed files with 4 additions and 2 deletions

View File

@@ -361,7 +361,7 @@ document.addEventListener('DOMContentLoaded', function() {
// Maximum number of characters to display
const maxChars = 140; // Adjust this value as needed
document.querySelectorAll('#actus-caroussel .node-type-actualite .field_body p').forEach(function(paragraph) {
document.querySelectorAll('#actus-caroussel .node-type-actualite .field_body').forEach(function(paragraph) {
let text = paragraph.textContent.trim();
if (text.length > maxChars) {
let truncatedText = text.slice(0, maxChars) + '...';

View File

@@ -137,6 +137,7 @@
opacity: 1 !important;
transform: none !important;
font-family: 'gilroy-regular';
padding-bottom: 0.5rem;
p{
margin: 0;
margin-bottom: 1rem;