aboutsummaryrefslogtreecommitdiff
path: root/src/view/NewsBlockBuilder.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2025-09-06 00:33:22 +0200
committerpolo <ordipolo@gmx.fr>2025-09-06 00:33:22 +0200
commitc5d9df5c42b5d2522e2a06b5f40422c1bbf497ab (patch)
treece07ebbbc6212f2185ee9ab8024168e934319865 /src/view/NewsBlockBuilder.php
parent7be773469a719d4170dcb6418b85277540c08b3f (diff)
downloadcms-c5d9df5c42b5d2522e2a06b5f40422c1bbf497ab.zip
correction bug au nombre de colonne lors du changement de la présentation d'un bloc
Diffstat (limited to 'src/view/NewsBlockBuilder.php')
-rw-r--r--src/view/NewsBlockBuilder.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/NewsBlockBuilder.php b/src/view/NewsBlockBuilder.php
index 4716c63..76e42c5 100644
--- a/src/view/NewsBlockBuilder.php
+++ b/src/view/NewsBlockBuilder.php
@@ -23,9 +23,10 @@ class NewsBlockBuilder extends AbstractBuilder
23 23
24 // stratégie d'affichage du contenu (utilisation de méthodes ou de classe List, GridPresentation, etc) 24 // stratégie d'affichage du contenu (utilisation de méthodes ou de classe List, GridPresentation, etc)
25 $section_class = $node->getNodeData()->getPresentation()->getName(); // = list, grid , mosaic ou carousel 25 $section_class = $node->getNodeData()->getPresentation()->getName(); // = list, grid , mosaic ou carousel
26 $cols_min_width = '';
26 if($section_class === 'grid'){ 27 if($section_class === 'grid'){
27 $min_width = (string)$node->getNodeData()->getColsMinWidth(); 28 $min_width = $node->getNodeData()->getColsMinWidth();
28 $cols_min_width = 'grid-template-columns: repeat(auto-fit, minmax(' . $min_width . 'px, 1fr));'; 29 $cols_min_width = 'grid-template-columns: repeat(auto-fit, minmax(' . (string)$min_width . 'px, 1fr));';
29 } 30 }
30 31
31 // ajouter un article 32 // ajouter un article