Correction : clavier numérique et réduction de la largeur des colonnes
This commit is contained in:
@@ -7,7 +7,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
const addRowButton = document.getElementById("add-row");
|
const addRowButton = document.getElementById("add-row");
|
||||||
const saveButton = document.getElementById("save");
|
const saveButton = document.getElementById("save");
|
||||||
|
|
||||||
// Mettre à jour la date et l'heure
|
// Mise à jour de la date et l'heure
|
||||||
const updateDatetime = () => {
|
const updateDatetime = () => {
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
datetimeElement.textContent = now.toLocaleString("fr-FR");
|
datetimeElement.textContent = now.toLocaleString("fr-FR");
|
||||||
@@ -32,6 +32,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
const montantInput = document.createElement("input");
|
const montantInput = document.createElement("input");
|
||||||
montantInput.type = "number";
|
montantInput.type = "number";
|
||||||
montantInput.step = "0.01";
|
montantInput.step = "0.01";
|
||||||
|
montantInput.inputMode = "decimal"; // Forcer le clavier numérique
|
||||||
montantInput.placeholder = "0.00";
|
montantInput.placeholder = "0.00";
|
||||||
montantCell.appendChild(montantInput);
|
montantCell.appendChild(montantInput);
|
||||||
|
|
||||||
|
|||||||
@@ -72,27 +72,28 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#articles-table {
|
#articles-table {
|
||||||
width: calc(100% - 20px);
|
width: 100%; /* Ajuste la table à 100% de la zone disponible */
|
||||||
max-width: 600px;
|
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#articles-table th, #articles-table td {
|
#articles-table th,
|
||||||
|
#articles-table td {
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
padding: 12px;
|
padding: 8px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 16px;
|
font-size: 14px; /* Taille plus petite pour éviter les débordements */
|
||||||
}
|
}
|
||||||
|
|
||||||
#articles-table th {
|
#articles-table th {
|
||||||
width: 25%;
|
width: 20%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#articles-table td input,
|
#articles-table td input,
|
||||||
#articles-table td select {
|
#articles-table td select {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
font-size: 16px;
|
font-size: 14px; /* Taille réduite */
|
||||||
|
width: 90%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#articles-table td input[type="radio"] {
|
#articles-table td input[type="radio"] {
|
||||||
|
|||||||
Reference in New Issue
Block a user