Skip to content

Commit

Permalink
fixup! feat(ParticipantsTab): attach arrow navigation to search resul…
Browse files Browse the repository at this point in the history
…ts, align list styles with LeftSidebar

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Mar 26, 2024
1 parent 6d131e2 commit 7d05b9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RightSidebar/Participants/Participant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
'selected': isSelected }"
:aria-label="participantAriaLabel"
:role="isSearched ? 'listitem' : undefined"
:tabindex="isSearched ? 0 : undefined"
:tabindex="0"
v-on="isSearched ? { click: handleClick, 'keydown.enter': handleClick } : {}"
@keydown.enter="handleClick">
<!-- Participant's avatar -->
Expand Down
5 changes: 5 additions & 0 deletions src/components/RightSidebar/Participants/ParticipantsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<NcAppNavigationCaption v-if="canAdd" :name="t('spreed', 'Participants')" />

<ParticipantsList v-if="filteredParticipants.length"
class="known-results"
:items="filteredParticipants"
:loading="!participantsInitialised" />
<Hint v-else :hint="t('spreed', 'No search results')" />
Expand Down Expand Up @@ -370,6 +371,10 @@ export default {
overflow-y: auto;
}

.known-results {
padding: 0 2px;
}

.search-results {
margin-top: 12px; // compensate margin before first header inside
}
Expand Down

0 comments on commit 7d05b9d

Please sign in to comment.