onébien
This commit is contained in:
parent
4c5d8f4414
commit
d3c6bd4edb
60
index.html
60
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;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@ -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 = '<button class="add-btn" onclick="addColumn()">+</button>';
|
||||
rowEl.appendChild(addColBtn);
|
||||
|
||||
|
||||
gridEl.appendChild(rowEl);
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user