Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: improve advanced search UX (#8522)

Tianzhou (天舟)0b9931b553a1
diff --git a/frontend/src/components/AdvancedSearch.vue b/frontend/src/components/AdvancedSearch.vue
index dda3a12a27..1310ff057d 100644
--- a/frontend/src/components/AdvancedSearch.vue
+++ b/frontend/src/components/AdvancedSearch.vue
@@ -17,16 +17,15 @@
</NInput>
<div
v-if="state.showSearchScopes"
- class="absolute z-50 top-full w-full divide-y divide-block-border bg-white shadow-md"
+ class="absolute z-50 pt-1 top-full w-full divide-y divide-block-border bg-white shadow-md"
>
<div
v-for="item in searchScopes"
:key="item.id"
- class="flex gap-x-3 p-2 items-center cursor-pointer hover:bg-gray-100"
+ class="flex gap-x-1 px-3 py-1 items-center cursor-pointer hover:bg-gray-100"
@mousedown.prevent.stop="onScopeSelect(item.id)"
>
- <heroicons-outline:filter class="h-4 w-4 text-control" />
- <div class="space-x-1">
+ <div class="space-x-1 text-sm">
<span class="text-accent">{{ item.id }}:</span>
<span class="text-control-light">{{ item.description }}</span>
</div>
diff --git a/frontend/src/views/IssueDashboard.vue b/frontend/src/views/IssueDashboard.vue
index 133d512929..d6a9e0d174 100644
--- a/frontend/src/views/IssueDashboard.vue
+++ b/frontend/src/views/IssueDashboard.vue
@@ -1,7 +1,7 @@
<template>
<div class="flex flex-col">
<AdvancedSearch
- custom-class="m-4"
+ custom-class="mx-4 my-2"
:params="initSearchParams"
:autofocus="autofocus"
@update="onSearchParamsUpdate($event)"
@@ -9,7 +9,7 @@
<FeatureAttention
v-if="!!state.searchParams.query || state.searchParams.scopes.length > 0"
- custom-class="m-4"
+ custom-class="mx-4 my-2"
feature="bb.feature.issue-advanced-search"
/>