diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-12-03 22:11:47 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-12-05 17:54:44 +0100 |
commit | 6c49c3e936a52ad60403d0f5c3562475f8df2c83 (patch) | |
tree | e111a598aafaadd492d183db4881370f741319fb /core/src | |
parent | 52aadb5fd2a728174edd8a63a4d48a9497b6a9fa (diff) | |
download | nextcloud-server-6c49c3e936a52ad60403d0f5c3562475f8df2c83.tar.gz nextcloud-server-6c49c3e936a52ad60403d0f5c3562475f8df2c83.zip |
fix(UnifiedSearch): Move headings out of list elements
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/views/UnifiedSearch.vue | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/core/src/views/UnifiedSearch.vue b/core/src/views/UnifiedSearch.vue index 3a136c501e9..198e952d9c9 100644 --- a/core/src/views/UnifiedSearch.vue +++ b/core/src/views/UnifiedSearch.vue @@ -36,10 +36,10 @@ <!-- Search form & filters wrapper --> <div class="unified-search__input-wrapper"> <div class="unified-search__input-row"> - <NcTextField :value.sync="query" + <NcTextField ref="input" + :value.sync="query" trailing-button-icon="close" :label="ariaLabel" - ref="input" :trailing-button-label="t('core','Reset search')" :show-trailing-button="query !== ''" aria-describedby="unified-search-desc" @@ -90,16 +90,13 @@ </template> <!-- Grouped search results --> - <template v-else> - <ul v-for="({list, type}, typesIndex) in orderedResults" - :key="type" - class="unified-search__results" - :class="`unified-search__results-${type}`" - :aria-label="typesMap[type]"> + <template v-for="({list, type}, typesIndex) in orderedResults" v-else :key="type"> <h2 class="unified-search__results-header"> {{ typesMap[type] }} </h2> - + <ul class="unified-search__results" + :class="`unified-search__results-${type}`" + :aria-label="typesMap[type]"> <!-- Search results --> <li v-for="(result, index) in limitIfAny(list, type)" :key="result.resourceUrl"> <SearchResult v-bind="result" |