From 090f28e202c874c887f918b0bf8a67a9ef123e47 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 24 Feb 2024 15:02:35 +1100 Subject: [PATCH] Sticky table headers --- slices/main/templates/books/index.html.slim | 2 +- slices/main/templates/movies/index.html.slim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/slices/main/templates/books/index.html.slim b/slices/main/templates/books/index.html.slim index f82ff50..b5aa95c 100644 --- a/slices/main/templates/books/index.html.slim +++ b/slices/main/templates/books/index.html.slim @@ -5,7 +5,7 @@ div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark: div class="mb-12 prose dark:prose-invert max-w-prose mx-auto" table class="text-gray-800 dark:text-white table-auto" - thead + thead class="sticky top-0 bg-gray-100 dark:bg-purple-900" tr td td class="p-2" Title diff --git a/slices/main/templates/movies/index.html.slim b/slices/main/templates/movies/index.html.slim index 24d632b..226e1a5 100644 --- a/slices/main/templates/movies/index.html.slim +++ b/slices/main/templates/movies/index.html.slim @@ -5,9 +5,9 @@ div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark: div class="mb-12 max-w-prose mx-auto" table class="prose dark:prose-invert table-auto" - thead + thead class="sticky top-0 bg-black text-gray-100" tr - td Title + td class="pl-2" Title td Year td Rating - movies.each do |movie|