table consistant
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
moerp 2024-02-01 17:06:30 +01:00
parent ca734fda32
commit cb84e3cdc0
2 changed files with 24 additions and 22 deletions

View File

@ -161,7 +161,7 @@ tr:hover:not(.selected) {
} }
} }
#table-container { .table-container {
overflow-y: auto; overflow-y: auto;
max-height: 400px; /* Passen Sie die Höhe nach Bedarf an */ max-height: 400px; /* Passen Sie die Höhe nach Bedarf an */
border-radius: 10px; border-radius: 10px;

View File

@ -190,26 +190,28 @@
<div class="content"> <div class="content">
<form onsubmit="event.preventDefault(); addNutritionEntry();" method="POST" id="nutrition-form"> <form onsubmit="event.preventDefault(); addNutritionEntry();" method="POST" id="nutrition-form">
<table id="nutrition-input-table"> <div id="table-container">
<tr> <table id="nutrition-input-table">
<th>Lebensmittel</th> <tr>
<th>kcal</th> <th>Lebensmittel</th>
<th>EW</th> <th>kcal</th>
<th>Fett</th> <th>EW</th>
<th>KH</th> <th>Fett</th>
<th>BST</th> <th>KH</th>
<th>CA</th> <th>BST</th>
</tr> <th>CA</th>
<tr> </tr>
<td><input type="text" name="food" placeholder="Lebensmittel" oninput="updateSubmitButtonState()"></td> <tr>
<td><input <input type="text" name="kcal" pattern="\d+([.,]\d{1,2})?" placeholder="g" oninput="updateSubmitButtonState()"></td> <td><input type="text" name="food" placeholder="Lebensmittel" oninput="updateSubmitButtonState()"></td>
<td><input <input type="text" name="ew" pattern="\d+([.,]\d{1,2})?" placeholder="g" oninput="updateSubmitButtonState()"></td> <td><input <input type="text" name="kcal" pattern="\d+([.,]\d{1,2})?" placeholder="g" oninput="updateSubmitButtonState()"></td>
<td><input <input type="text" name="fett" pattern="\d+([.,]\d{1,2})?" placeholder="g" oninput="updateSubmitButtonState()"></td> <td><input <input type="text" name="ew" pattern="\d+([.,]\d{1,2})?" placeholder="g" oninput="updateSubmitButtonState()"></td>
<td><input <input type="text" name="kh" pattern="\d+([.,]\d{1,2})?" placeholder="g" oninput="updateSubmitButtonState()"></td> <td><input <input type="text" name="fett" pattern="\d+([.,]\d{1,2})?" placeholder="g" oninput="updateSubmitButtonState()"></td>
<td><input <input type="text" name="bst" pattern="\d+([.,]\d{1,2})?" placeholder="g" oninput="updateSubmitButtonState()"></td> <td><input <input type="text" name="kh" pattern="\d+([.,]\d{1,2})?" placeholder="g" oninput="updateSubmitButtonState()"></td>
<td><input <input type="text" name="ca" pattern="\d+([.,]\d{1,2})?" placeholder="mg" oninput="updateSubmitButtonState()"></td> <td><input <input type="text" name="bst" pattern="\d+([.,]\d{1,2})?" placeholder="g" oninput="updateSubmitButtonState()"></td>
</tr> <td><input <input type="text" name="ca" pattern="\d+([.,]\d{1,2})?" placeholder="mg" oninput="updateSubmitButtonState()"></td>
</table> </tr>
</table>
</div>
<button type="submit" id="submit-button" disabled>Hinzufügen</button> <button type="submit" id="submit-button" disabled>Hinzufügen</button>
</form> </form>
@ -218,7 +220,7 @@
</div> </div>
<div id="table-container"> <div class="table-container">
<table id="database-nutrition-table"> <table id="database-nutrition-table">
<thead> <thead>
<tr> <tr>