Skip to content

Commit

Permalink
revert: ⏪ change back scroll table (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesOberreiter committed Mar 11, 2024
1 parent 99bf63d commit eeaa8df
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions components/components.templ
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ templ Pagination(pages PagesString){
}
</button>
</div>

</div>

}


Expand All @@ -224,9 +222,9 @@ templ Table(rows TableRows, q queries.Query, counts queries.Counts, pages PagesS
<span> | </span>
<span>Observations: { printer.Sprintln(counts.ObservationCount) }</span>
</small>
<div class="overflow-x-auto mt-2">
<table class="text-nowrap table-auto overflow-scroll w-full m-0">
<thead class="">
<div class="mt-2">
<table class="text-nowrap table-auto w-full m-0">
<thead>
<tr>
@TableTh("Scientific Name", "name", q)
<th class="text-left">Country</th>
Expand Down Expand Up @@ -315,7 +313,7 @@ templ PageTable(rows TableRows, q queries.Query, counts queries.Counts, pages Pa
// About page
templ PageAbout(){
@Page() {
<div>
<div class="container">
@templ.Raw(_aboutPage)

<hr class="mt-1 mb-1" />
Expand All @@ -341,7 +339,7 @@ templ Page() {
<link href="/assets/css/main.css" rel="stylesheet" />
<script src="/assets/js/htmx.min.js" />
</head>
<body class="prose font-mono container mx-auto">
<body class="prose font-mono">
<div class="p-4">
{ children... }
</div>
Expand Down

0 comments on commit eeaa8df

Please sign in to comment.