Skip to content

Commit

Permalink
Merge pull request #14502 from nextcloud/fix/noid/expand-search
Browse files Browse the repository at this point in the history
  • Loading branch information
Antreesy authored Feb 27, 2025
2 parents 76b0569 + cba2d8e commit f7fc5ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/LeftSidebar/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<template #search>
<div class="new-conversation">
<div class="conversations-search"
:class="{'conversations-search--expanded': isFocused}">
:class="{'conversations-search--expanded': isSearching}">
<SearchBox ref="searchBox"
:value.sync="searchText"
:is-focused.sync="isFocused"
Expand All @@ -22,7 +22,7 @@
<NcActions v-show="searchText === ''"
:primary="isFiltered !== null"
class="filters"
:class="{'hidden-visually': isFocused}">
:class="{'hidden-visually': isSearching}">
<template #icon>
<FilterIcon :size="15" />
</template>
Expand Down Expand Up @@ -60,7 +60,7 @@
<TransitionWrapper name="radial-reveal">
<NcActions v-show="searchText === ''"
class="actions"
:class="{'hidden-visually': isFocused}">
:class="{'hidden-visually': isSearching}">
<template #icon>
<ChatPlus :size="20" />
</template>
Expand Down Expand Up @@ -505,7 +505,7 @@ export default {
},

searchResultsConversationList() {
if (this.searchText !== '' || this.isFocused) {
if (this.isSearching) {
const lowerSearchText = this.searchText.toLowerCase()
return this.conversationsList.filter(conversation =>
conversation.displayName.toLowerCase().includes(lowerSearchText)
Expand Down

0 comments on commit f7fc5ff

Please sign in to comment.