From d3c6bd4edbe41e91dec7f35506244821c5f75107 Mon Sep 17 00:00:00 2001 From: Axce Date: Fri, 2 Jan 2026 06:27:22 +0100 Subject: [PATCH] =?UTF-8?q?on=C3=A9bien?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 60 +++++++++++++++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/index.html b/index.html index 207b5eb..05da4ff 100644 --- a/index.html +++ b/index.html @@ -254,27 +254,6 @@ margin-top: 16px; } - .add-controls { - display: flex; - align-items: center; - margin-left: 8px; - } - - .add-btn, .remove-btn { - width: 20px; - height: 20px; - padding: 0; - display: flex; - align-items: center; - justify-content: center; - background-color: #e5e7eb; - border-radius: 3px; - } - - .add-btn:hover { - background-color: #d1d5db; - } - .modal { display: none; position: fixed; @@ -337,6 +316,37 @@ justify-content: center; width: 40px; } + + @media print { + body { + background: white; + padding: 0; + } + + /* Tout cacher */ + body * { + visibility: hidden; + } + + /* Sauf la grille */ + .grid-container, + .grid-container * { + visibility: visible; + } + + .grid-container { + position: absolute; + left: 0; + top: 0; + box-shadow: none; + padding: 0; + } + + .cell { + border: 1px solid #000; + } + } + @@ -973,13 +983,7 @@ if (!window._cellEls[rowIndex]) window._cellEls[rowIndex] = []; window._cellEls[rowIndex][colIndex] = cellEl; }); - - // Bouton d'ajout de colonne - const addColBtn = document.createElement('div'); - addColBtn.className = 'add-controls'; - addColBtn.innerHTML = ''; - rowEl.appendChild(addColBtn); - + gridEl.appendChild(rowEl); });