Diff between db788f1d5d9b3dfef3b30556929a3a13494c53b1 and 23952f2f32f37bdf78160dbfe5eb9c9a82ac89e0

Changed Files

File Additions Deletions Status
css/style.css +15 -1 modified
public/index.php +1 -1 modified

Full Patch

diff --git a/css/style.css b/css/style.css
index 4c12a5d..6920044 100755
--- a/css/style.css
+++ b/css/style.css
@@ -17,11 +17,15 @@ button {
     border: none;
     background-color: var(--main-color);
     color: white;
-    padding: 4px;
+    padding: 6px 8px;
     border-radius: 10%;
     cursor: pointer;
 }
 
+input {
+    padding: 5px 10px;
+}
+
 table {
   table-layout: fixed;
   border-collapse: collapse;
@@ -44,6 +48,16 @@ tbody tr:nth-child(odd) {
     overflow-x: auto;
 }
 
+.searchInput {
+    margin-bottom: 5px;
+}
+
+table .muokkaus-column {
+    display: flex;
+    flex-direction: row;
+    gap: 4px;
+}
+
 footer{
     text-align: center;
 }
diff --git a/public/index.php b/public/index.php
index 0395038..d4e4d36 100755
--- a/public/index.php
+++ b/public/index.php
@@ -96,7 +96,7 @@ if ($result->num_rows>0){
 							echo "<td>" . $tyyppi["ruokaraha"] . "</td>";
 							echo "<td>" . $tyyppi["muuta"] . "</td>";
 							if ($op or ($logged_in and $tunnus === $tyyppi['nimi'])) { // Jos opettaja tai muokkaa omia tietoja
-								echo "<td>" . // Poista nappi
+								echo "<td class='muokkaus-column'>" . // Poista nappi
 									"<form action='../src/poista.php' method='POST'>
 									<input type='hidden' id='nimi' name='nimi' value={$tyyppi['nimi']}>
 									<button type='submit'>Poista</button>