Skip to content

Commit 773606c

Browse files
committed
Stick the filter
1 parent c601dba commit 773606c

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

src/Frontend/src/components/messages2/HeadersView.vue

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,11 @@ const filteredHeaders = computed(() => {
2222
</script>
2323

2424
<template>
25-
<div class="gap">
26-
<div>
27-
<div class="row filters">
28-
<div class="col">
29-
<div class="text-search-container">
30-
<div class="text-search">
31-
<div>
32-
<FilterInput v-model="searchTerm" :aria-label="`Search for a header key or value`" :placeholder="'Search for a header key or value...'" />
33-
</div>
34-
</div>
35-
</div>
25+
<div class="wrapper">
26+
<div class="filters">
27+
<div class="text-search-container">
28+
<div class="text-search">
29+
<FilterInput v-model="searchTerm" :aria-label="`Search for a header key or value`" :placeholder="'Search for a header key or value...'" />
3630
</div>
3731
</div>
3832
</div>
@@ -45,21 +39,22 @@ const filteredHeaders = computed(() => {
4539
</div>
4640
</template>
4741
</div>
48-
49-
<!-- Message if filtered list is empty -->
50-
<div v-if="filteredHeaders.length <= 0 && !headers.not_found" class="alert alert-warning">No headers found matching the search term.</div>
51-
<div v-if="headers.not_found" class="alert alert-info">Could not find message headers. This could be because the message URL is invalid or the corresponding message was processed and is no longer tracked by ServiceControl.</div>
5242
</div>
43+
44+
<!-- Message if filtered list is empty -->
45+
<div v-if="filteredHeaders.length <= 0 && !headers.not_found" class="alert alert-warning">No headers found matching the search term.</div>
46+
<div v-if="headers.not_found" class="alert alert-info">Could not find message headers. This could be because the message URL is invalid or the corresponding message was processed and is no longer tracked by ServiceControl.</div>
5347
</template>
5448

5549
<style scoped>
56-
.gap {
50+
.wrapper {
5751
margin-top: 5px;
5852
border-radius: 0.5rem;
5953
padding: 0.5rem;
6054
border: 1px solid #ccc;
6155
background: white;
6256
}
57+
6358
.removeBootStrap {
6459
background: initial;
6560
border: none;
@@ -86,6 +81,9 @@ const filteredHeaders = computed(() => {
8681
max-width: 40rem;
8782
}
8883
.filters {
84+
top: -2.5rem;
85+
position: sticky;
86+
z-index: 100;
8987
background-color: #f3f3f3;
9088
border: #8c8c8c 1px solid;
9189
border-radius: 3px;

0 commit comments

Comments
 (0)