Improve tooltip styles and guard search query
Add Vuetify tooltip CSS for better contrast and readability in light/dark themes (sets background/text colors, font-size, weight, padding, radius, shadow and forces opacity) in GUI/src/global.css. In AdminUsers.vue, guard against null/undefined `searchQuery.value` by using `searchQuery.value ?? ''` before trimming and lowercasing to prevent runtime errors when the query is unset.
This commit is contained in:
@@ -26,7 +26,7 @@ const adminCount = computed(
|
||||
)
|
||||
|
||||
const filteredUsers = computed(() => {
|
||||
const query = searchQuery.value.trim().toLowerCase()
|
||||
const query = (searchQuery.value ?? '').trim().toLowerCase()
|
||||
if (query.length === 0) {
|
||||
return users.value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user