From 8bd054afc27cff0a9d76812f488061e599061b0f Mon Sep 17 00:00:00 2001 From: Jendrik Seipp Date: Sat, 24 Feb 2024 21:10:26 +0100 Subject: [PATCH] Make HTML table headers sticky. --- docs/news.rst | 1 + lab/reports/markup.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docs/news.rst b/docs/news.rst index 45c740225..337c99030 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -10,6 +10,7 @@ Lab * Let fetch and report steps log only the total number of unexplained errors instead of printing all of them to stderr (Jendrik Seipp). * Let parsers print an error if the file for a required pattern is missing. Call parser functions with empty string for missing files (Silvan Sievers). * Raise an error if a run command calls a Python script directly, because this would bypass the virtual environment (Jendrik Seipp). +* Make HTML table headers sticky (Jendrik Seipp). Downward Lab ^^^^^^^^^^^^ diff --git a/lab/reports/markup.py b/lab/reports/markup.py index 7e579bdb1..9f1e4c05c 100644 --- a/lab/reports/markup.py +++ b/lab/reports/markup.py @@ -21,6 +21,9 @@ padding-bottom: 4px; background-color: #aaa; color: #ffffff; + /* Make table headers sticky. */ + position: sticky; + top: 0; } """