diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-12-03 22:11:47 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-12-03 22:11:47 +0100 |
commit | 4983a35e1f7a176cc94fabea435552e0c73ec6bd (patch) | |
tree | 93bec0fc6f47476cce0957c21e8c9e81eef3174b | |
parent | f778c6c34491031b5708bba786116dd72ec19aff (diff) | |
download | nextcloud-server-4983a35e1f7a176cc94fabea435552e0c73ec6bd.tar.gz nextcloud-server-4983a35e1f7a176cc94fabea435552e0c73ec6bd.zip |
fix(UnifiedSearch): Move headings out of list elements
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-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" |