Skip to content

Commit

Permalink
fix(4as): freeze header in table summary (#363)
Browse files Browse the repository at this point in the history
Co-authored-by: upri <[email protected]>
  • Loading branch information
bon-carpo and upri authored Mar 21, 2024
1 parent 3f04335 commit ed83af1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@
In a large flood event, how many people might be affected and would
need evacuation?
</p>
<div class="italic lg:text-lg text-sm">
<div class="py-2 italic lg:text-lg text-sm">
<span>As of {{ dateDataText }}</span>
</div>
</div>

<!-- ... Your existing header content ... -->
</div>
<div class="flex-auto p-2 overflow-y-auto">
<div class="flex-auto p-2">
<div class="mb-2 bg-white">
<label for="table-search" class="sr-only">Search</label>
<div class="relative mt-1">
Expand Down Expand Up @@ -190,7 +190,7 @@
</div>
</div>
<!-- Modal Content -->
<div class="flex-grow overflow-auto h-auto">
<div class="table-wrp block flex-grow max-h-full" style="height: 58vh">
<table
class="w-full text-sm text-left text-gray-500 dark:text-gray-400"
>
Expand Down Expand Up @@ -273,7 +273,7 @@
px-4
pb-10
text-base
md:text-2xl
md:text-xl
leading-none
text-center text-gray-600
"
Expand All @@ -287,7 +287,7 @@
</div>
</ng-container>
<ng-template #dataAvailable>
<tbody class="h-96 overflow-y-auto">
<tbody class="h-96 overflow-scroll">
<tr
*ngFor="
let data of affectedData
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.table-wrp {
max-height: 75vh;
overflow-y: auto;
display: block;
}
thead {
position: sticky;
top: 0;
}

0 comments on commit ed83af1

Please sign in to comment.