carroussel actus home debugg js

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

File diff suppressed because one or more lines are too long

View File

@ -1632,6 +1632,7 @@ footer {
opacity: 1 !important;
transform: none !important;
font-family: "gilroy-regular";
padding-bottom: 0.5rem;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_body p {
margin: 0;

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;