stick header and filter bar to top
All checks were successful
delpoy / build-and-deploy (push) Successful in 48s

This commit is contained in:
bytedream 2024-12-28 01:28:14 +01:00
parent 6e7c2eafca
commit 5935b0d561
4 changed files with 145 additions and 141 deletions

View File

@ -133,7 +133,7 @@
<div class="grid"> <div class="grid">
{#key $page.url.pathname} {#key $page.url.pathname}
<div <div
class="col-[1] row-[1] h-full w-full overflow-y-scroll overflow-x-hidden" class="col-[1] row-[1] h-[calc(100vh-3rem)] w-full overflow-y-scroll overflow-x-hidden"
in:fly={{ x: transitionPrefix * window.innerWidth, duration: !transitionPrefix ? 0 : 100 }} in:fly={{ x: transitionPrefix * window.innerWidth, duration: !transitionPrefix ? 0 : 100 }}
out:fly={{ out:fly={{
x: transitionPrefix * -window.innerWidth, x: transitionPrefix * -window.innerWidth,
@ -145,7 +145,7 @@
{/key} {/key}
</div> </div>
{:else} {:else}
<div class="h-full w-full"> <div class="h-[calc(100vh-3rem)] w-full">
{@render children()} {@render children()}
</div> </div>
{/if} {/if}

View File

@ -66,6 +66,7 @@
onUpdate={() => fetchFeedback({ from: 0 }).then((r) => (feedbacks = r))} onUpdate={() => fetchFeedback({ from: 0 }).then((r) => (feedbacks = r))}
/> />
<hr class="divider my-1 mx-8 border-none" /> <hr class="divider my-1 mx-8 border-none" />
<div class="h-full overflow-scroll">
<table class="table table-fixed h-fit"> <table class="table table-fixed h-fit">
<thead> <thead>
<tr> <tr>
@ -126,6 +127,7 @@
</PaginationTableBody> </PaginationTableBody>
</table> </table>
</div> </div>
</div>
{#if activeFeedback} {#if activeFeedback}
<div <div
class="relative flex flex-col w-2/5 h-[calc(100vh-3rem)] bg-base-200/50 px-4 py-6 overflow-scroll" class="relative flex flex-col w-2/5 h-[calc(100vh-3rem)] bg-base-200/50 px-4 py-6 overflow-scroll"

View File

@ -115,6 +115,7 @@
</div> </div>
</div> </div>
<hr class="divider my-1 mx-8 border-none" /> <hr class="divider my-1 mx-8 border-none" />
<div class="h-full overflow-scroll">
<table class="table table-fixed h-fit"> <table class="table table-fixed h-fit">
<colgroup> <colgroup>
<col style="width: 20%" /> <col style="width: 20%" />
@ -205,6 +206,7 @@
</PaginationTableBody> </PaginationTableBody>
</table> </table>
</div> </div>
</div>
{#if activeReport} {#if activeReport}
<div <div
class="relative flex flex-col w-2/5 h-[calc(100vh-3rem)] bg-base-200/50 px-4 py-6 overflow-scroll" class="relative flex flex-col w-2/5 h-[calc(100vh-3rem)] bg-base-200/50 px-4 py-6 overflow-scroll"

View File

@ -96,7 +96,7 @@
<table class="table table-auto"> <table class="table table-auto">
<thead> <thead>
<!-- prettier-ignore --> <!-- prettier-ignore -->
<SortableTr class="[&>th]:bg-base-100 [&>th]:z-[1] [&>th]:sticky [&>th]:top-0"> <SortableTr>
<th></th> <th></th>
<SortableTh onSort={(e) => userFilter = {...userFilter, sort: {key: 'firstname', asc: e.asc}}}>Vorname</SortableTh> <SortableTh onSort={(e) => userFilter = {...userFilter, sort: {key: 'firstname', asc: e.asc}}}>Vorname</SortableTh>
<SortableTh onSort={(e) => userFilter = {...userFilter, sort: {key: 'lastname', asc: e.asc}}}>Nachname</SortableTh> <SortableTh onSort={(e) => userFilter = {...userFilter, sort: {key: 'lastname', asc: e.asc}}}>Nachname</SortableTh>