Explorar o código

improve inscription layout

tripeur %!s(int64=4) %!d(string=hai) anos
pai
achega
7be4685300
Modificáronse 1 ficheiros con 18 adicións e 9 borrados
  1. 18 9
      src/components/ManageRegistration.vue

+ 18 - 9
src/components/ManageRegistration.vue

@@ -22,16 +22,20 @@
             <th>Email</th>
           </tr>
         </thead>
-        <tbody>
-          <tr v-for="b in inscriptions" :key="b.id">
-            <td @click="toggle(b.id)">
-              <i class="material-icons">{{ checkbox(b.id) }}</i>
-            </td>
-            <td @click="display(b.id)">{{ b.name }}, {{ b.surname }}</td>
-            <td @click="display(b.id)">{{ b.email }}</td>
-          </tr>
-        </tbody>
       </table>
+      <div class="table-container">
+        <table>
+          <tbody>
+            <tr v-for="b in inscriptions" :key="b.id">
+              <td @click="toggle(b.id)">
+                <i class="material-icons">{{ checkbox(b.id) }}</i>
+              </td>
+              <td @click="display(b.id)">{{ b.name }}, {{ b.surname }}</td>
+              <td @click="display(b.id)">{{ b.email }}</td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
     </div>
     <div class="benevole-preview">
       <div v-if="benevole">
@@ -203,6 +207,11 @@ export default defineComponent({
   margin-right: 4px;
   margin-bottom: 4px;
 }
+.table-container {
+  overflow-x: clip;
+  overflow-y: auto;
+  max-height: calc(100vh - 13.5rem);
+}
 table {
   max-width: 800px;
   width: calc(100vw - 690px);