Skip to content

Commit 03de2be

Browse files
committed
make filter styles consistent
1 parent 3e811fb commit 03de2be

File tree

4 files changed

+3
-20
lines changed

4 files changed

+3
-20
lines changed

src/Frontend/src/components/FilterInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ watch(localInput, (newValue) => {
2121

2222
<template>
2323
<div role="search" aria-label="filter" class="filter-input">
24-
<input type="search" :placeholder="props.placeholder" :aria-label="props.ariaLabel" class="form-control-static filter-input" v-model="localInput" />
24+
<input type="search" :placeholder="props.placeholder" :aria-label="props.ariaLabel" class="form-control filter-input" v-model="localInput" />
2525
</div>
2626
</template>
2727

src/Frontend/src/components/monitoring/MonitoringFilter.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ const monitoringStore = useMonitoringStore();
1616
</template>
1717

1818
<style scoped>
19-
.form-control-static {
20-
min-height: 34px;
21-
padding-top: 7px;
22-
padding-bottom: 7px;
23-
margin-bottom: 0;
24-
}
25-
2619
.filter-group.filter-monitoring {
2720
width: 100%;
2821
margin-top: 0.5em;

src/Frontend/src/views/HeartbeatsView.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,6 @@ const isMassTransitConnected = useIsMassTransitConnected();
8282
padding: 0;
8383
}
8484
85-
.form-control-static {
86-
min-height: 34px;
87-
padding-top: 7px;
88-
padding-bottom: 7px;
89-
margin-bottom: 0;
90-
}
91-
9285
.filter-group > *:not(:first-child) {
9386
margin-left: 1.5em;
9487
}

src/Frontend/src/views/throughputreport/endpoints/DetectedListView.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { useShowToast } from "@/composables/toast";
1313
import ResultsCount from "@/components/ResultsCount.vue";
1414
import { useHiddenFeature } from "./useHiddenFeature";
1515
import { license } from "@/composables/serviceLicense";
16+
import FilterInput from "@/components/FilterInput.vue";
1617
1718
enum NameFilterType {
1819
beginsWith = "Begins with",
@@ -101,10 +102,6 @@ async function loadData() {
101102
data.value = results.filter((row) => row.is_known_endpoint === (props.source === DataSource.WellKnownEndpoint));
102103
}
103104
104-
function nameFilterChanged(event: Event) {
105-
filterData.name = (event.target as HTMLInputElement).value;
106-
}
107-
108105
function sortChanged(item: Item) {
109106
filterData.sort = item.value;
110107
}
@@ -177,7 +174,7 @@ async function save() {
177174
</select>
178175
</div>
179176
<div>
180-
<input type="search" aria-label="Filter by name" class="form-control format-text" :value="filterData.name" @input="nameFilterChanged" placeholder="Filter by name..." />
177+
<FilterInput v-model="filterData.name" />
181178
</div>
182179
</div>
183180
</div>

0 commit comments

Comments
 (0)