fix: overflow sur tel
This commit is contained in:
parent
de051d9e32
commit
7af144d03c
1 changed files with 19 additions and 17 deletions
10
index.html
10
index.html
|
@ -19,6 +19,7 @@
|
|||
<!-- Tableau des résultats -->
|
||||
<div class="bg-white shadow-lg p-6 rounded-lg w-full sm:w-1/2 md:w-1/3 lg:w-1/2 mt-6">
|
||||
<h2 class="text-lg font-bold mb-4 text-center">Résultats</h2>
|
||||
<div class="overflow-x-auto">
|
||||
<table class="min-w-full table-auto">
|
||||
<thead>
|
||||
<tr class="bg-gray-100">
|
||||
|
@ -33,6 +34,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function TimeMS(delta) {
|
||||
|
@ -131,19 +133,19 @@
|
|||
row.className = "border-t";
|
||||
|
||||
const playerCell = document.createElement("td");
|
||||
playerCell.className = "px-4 py-2";
|
||||
playerCell.className = "px-4 py-2 whitespace-nowrap";
|
||||
playerCell.textContent = id;
|
||||
|
||||
const startCell = document.createElement("td");
|
||||
startCell.className = "px-4 py-2";
|
||||
startCell.className = "px-4 py-2 whitespace-nowrap";
|
||||
startCell.textContent = startTime;
|
||||
|
||||
const endCell = document.createElement("td");
|
||||
endCell.className = "px-4 py-2";
|
||||
endCell.className = "px-4 py-2 whitespace-nowrap";
|
||||
endCell.textContent = endTime;
|
||||
|
||||
const deltaCell = document.createElement("td");
|
||||
deltaCell.className = "px-4 py-2";
|
||||
deltaCell.className = "px-4 py-2 whitespace-nowrap";
|
||||
deltaCell.textContent = TimeMS(delta);
|
||||
|
||||
row.appendChild(playerCell);
|
||||
|
|
Loading…
Reference in a new issue