Basic functionality
This commit is contained in:
@ -4,8 +4,8 @@ import "gitea.henriburau.de/haw-lan/cod4watcher/models"
|
||||
import "strconv"
|
||||
|
||||
templ CaptureTable(table models.ResultTable) {
|
||||
<div class="relative overflow-x-auto">
|
||||
<table class="w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400">
|
||||
<div class="relative overflow-x-auto" style="height: 50vh;">
|
||||
<table class="w-full overflow-scroll text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400">
|
||||
<thead class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
|
||||
<tr>
|
||||
for _, header := range table.Header {
|
||||
@ -20,7 +20,7 @@ templ CaptureTable(table models.ResultTable) {
|
||||
}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tbody class="overflow-y-scroll">
|
||||
for _, row := range table.Rows {
|
||||
<tr class="bg-white border-b dark:bg-gray-800 dark:border-gray-700">
|
||||
<th scope="row" class="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white">
|
||||
|
||||
Reference in New Issue
Block a user