From c5d9df5c42b5d2522e2a06b5f40422c1bbf497ab Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 6 Sep 2025 00:33:22 +0200 Subject: =?UTF-8?q?correction=20bug=20au=20nombre=20de=20colonne=20lors=20?= =?UTF-8?q?du=20changement=20de=20la=20pr=C3=A9sentation=20d'un=20bloc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/modif_page.js | 1 + 1 file changed, 1 insertion(+) (limited to 'public') diff --git a/public/js/modif_page.js b/public/js/modif_page.js index dd7271e..ee2004b 100644 --- a/public/js/modif_page.js +++ b/public/js/modif_page.js @@ -188,6 +188,7 @@ function changePresentation(bloc_id){ .then(data => { if(data.success){ document.getElementById(bloc_id).className = presentation; + document.getElementById(bloc_id).querySelector(".section_child").style.gridTemplateColumns = presentation === 'grid' ? 'repeat(auto-fit, minmax(' + data.cols_min_width + 'px, 1fr))' : ''; document.getElementById('cols_min_width_edit_' + bloc_id).className = presentation === 'grid' ? '' : 'hidden'; console.log('changement de présentation'); } -- cgit v1.2.3