Skip to content

Commit f350cd2

Browse files
Added CSS to make search result header sticky
1 parent e1f1002 commit f350cd2

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

app/frontend/src/wells/components/SearchResults.vue

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</b-row>
2727
<div class="table-responsive">
2828
<table id="searchResultsTable" class="table table-striped">
29-
<thead>
29+
<thead class="sticky-header">
3030
<tr>
3131
<th
3232
v-for="column in columns"
@@ -398,4 +398,20 @@ $spinner-border-width-sm: .2em !default;
398398
height: $spinner-height-sm;
399399
border-width: $spinner-border-width-sm;
400400
}
401+
402+
.sticky-header {
403+
position: sticky;
404+
top: 0;
405+
background-color: white;
406+
z-index: 2;
407+
margin: 0; /* Remove any margin */
408+
padding: 0; /* Remove any padding */
409+
}
410+
411+
.sticky-header tr {
412+
width: 100%;
413+
background-color: white; /* Ensure the background color matches the table */
414+
margin: 0; /* Remove any margin */
415+
padding: 0; /* Remove any padding */
416+
}
401417
</style>

0 commit comments

Comments
 (0)