From cc0413e0c53cf6a2bba61a46d93e52f7365f6f0c Mon Sep 17 00:00:00 2001 From: Niki Brown <284173+nikibrown@users.noreply.github.com> Date: Thu, 12 Feb 2026 10:02:48 -0800 Subject: [PATCH] [IMP] add sticky header class for long tables closes odoo/documentation#16384 Signed-off-by: Niki Brown (nikbr) --- extensions/odoo_theme/static/style.scss | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/extensions/odoo_theme/static/style.scss b/extensions/odoo_theme/static/style.scss index e7793ee0a4..f6670cec62 100644 --- a/extensions/odoo_theme/static/style.scss +++ b/extensions/odoo_theme/static/style.scss @@ -954,6 +954,24 @@ span.viewcode-link { margin-left: .3rem; } +// Table with sticky header (for long tables) +// Offset top by header height so table header sticks below the site header +.table-sticky-header { + // override the display: block in the mobile override + display: table!important; + border-collapse: separate; + border-spacing: 0; + thead th { + position: sticky; + z-index: 2; + background-color: $white; + top: $o-headers-mobile-height; + @include media-breakpoint-up(lg) { + top: $o-headers-height; + } + } +} + //------------------------------------------------------------------------------ // Alerts //------------------------------------------------------------------------------