Skip to content

Commit

Permalink
ease DOM structure, fix styles
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Sep 14, 2023
1 parent affd2ce commit 1ff6968
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,15 @@
-->

<template>
<div>
<ul>
<Participant v-for="item in items"
:key="generateKey(item)"
:participant="item"
:is-selectable="participantsSelectable"
:show-user-status="showUserStatus"
@click-participant="handleClickParticipant" />
</ul>
<ul>
<Participant v-for="item in items"
:key="generateKey(item)"
:participant="item"
:is-selectable="participantsSelectable"
:show-user-status="showUserStatus"
@click-participant="handleClickParticipant" />
<LoadingPlaceholder v-if="loading" type="participants" :count="dummyParticipants" />
</div>
</ul>
</template>

<script>
Expand Down
15 changes: 12 additions & 3 deletions src/components/RightSidebar/Participants/ParticipantsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
-->

<template>
<div>
<div class="wrapper">
<SearchBox v-if="canSearch"
:value.sync="searchText"
:is-focused.sync="isFocused"
Expand All @@ -32,7 +32,7 @@
:participants="participants"
:loading="!participantsInitialised" />

<template v-else>
<div v-else class="scroller">
<NcAppNavigationCaption v-if="canAdd" :title="t('spreed', 'Participants')" />

<ParticipantsList v-if="filteredParticipants.length"
Expand All @@ -46,7 +46,7 @@
:no-results="noResults"
:search-text="searchText"
@click="addParticipants" />
</template>
</div>
</div>
</template>

Expand Down Expand Up @@ -266,6 +266,15 @@ export default {
</script>

<style scoped>
.wrapper {
display: flex;
flex-direction: column;
height: 100%;
}

.scroller {
overflow-y: auto;
}

/** TODO: fix these in the nextcloud-vue library **/

Expand Down

0 comments on commit 1ff6968

Please sign in to comment.