diff --git a/templates/audit/list.html b/templates/audit/list.html index 8924a6f..c1838b1 100644 --- a/templates/audit/list.html +++ b/templates/audit/list.html @@ -107,7 +107,7 @@ - {{ ui::table_container_open(id="audit-table", has_top_scroll=true, max_height="68vh") }} + {{ ui::table_container_open(id="audit-table", max_height="68vh") }}
- A standardized container macro for horizontal scroll synchronization and scrollbar-fitting layout. It resolves the common usability issue of unreachable scrollbars on wide tables. + A standardized container macro for table styling and scrollbar-fitting layout. It resolves common styling issues like corner clipping and header bleed-through.
- The macro standardizes the background styling, shadows, rounded borders, vertical height bounds, sticky headers, and outputs a synced scrollbar clone that rests at the top of the table. + The macro standardizes the background styling, shadows, rounded borders, vertical height bounds, and sticky headers.
{{ "{%" }} import "components/macros.html" as ui {{ "%}" }}
-{{ ui::table_container_open(id="my-custom-table", has_top_scroll=true, max_height="68vh") }}
+{{ ui::table_container_open(id="my-custom-table", max_height="68vh") }}
<table class="min-w-full divide-y divide-slate-800 text-left text-sm text-slate-300 relative">
<thead class="shadow-[0_1px_0_0_rgba(255,255,255,0.05)]">
<tr class="text-xs font-bold text-slate-400 uppercase tracking-wider">
@@ -113,7 +113,7 @@
</tr>
</tbody>
</table>
-{{ ui::table_container_close(id="my-custom-table", has_top_scroll=true) }}
+{{ ui::table_container_close(id="my-custom-table") }}
- Since HTML natively positions horizontal scrollbars only at the bottom of overflow elements, the component generates a custom dummy scroll container at the top of the table. A Javascript listener observes layout resizing and syncs the horizontal offsets of both the top scroll track and the main table scroll track dynamically. + Tables are automatically styled with rounded-3xl corners and background styling. The table container is scrollable, displaying a native horizontal or vertical scrollbar as needed.