Skip to content

Commit 23f8aae

Browse files
authored
Make the header row of tables sticky to the top of the screen #1457 (#1458)
Signed-off-by: tdruez <tdruez@nexb.com>
1 parent 96fc287 commit 23f8aae

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ v34.9.1 (unreleased)
1717
Use a list of pipeline names instead.
1818
https://github.com/aboutcode-org/scancode.io/issues/1454
1919

20+
- Make the header row of tables sticky to the top of the screen so it is always
21+
visible.
22+
https://github.com/aboutcode-org/scancode.io/issues/1457
23+
2024
v34.9.0 (2024-11-14)
2125
--------------------
2226

scanpipe/templates/scanpipe/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
.is-grey-link {color: #7a7a7a;}
4040
.is-black-link:hover, .is-grey-link:hover {color: #3273dc; text-decoration: underline;}
4141
.navbar button.navbar-item {font-size: 1em;}
42+
thead.is-sticky {position: sticky; top: -1px; z-index: 100; background-color: #fff;}
4243
#inputs-panel .panel-block.dropdown:hover {background-color: #f5f5f5;}
4344
#inputs-panel .dropdown-menu {width: 85%;}
4445
a.panel-block {word-break: break-all;}

scanpipe/templates/scanpipe/includes/list_view_thead.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<thead>
1+
<thead class="is-sticky">
22
<tr>
33
{% if select_all %}
44
<th class="p-2">

0 commit comments

Comments
 (0)