Skip to content

Commit

Permalink
Added ScrollViewer to suggestion list
Browse files Browse the repository at this point in the history
  • Loading branch information
vytkuklys committed Aug 26, 2023
1 parent b437119 commit 36943e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vue/conf/src/components/invite/InviteFriend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { UserI } from '../../model/user.interface'
import type { MatchI } from '../../model/match/match.interface'
import { useNotificationStore } from '../../stores/notification'
import { connectWebSocket } from '../../websocket'
import ScrollViewer from '../utils/ScrollViewer.vue'
const props = defineProps({
matchId: {
Expand Down Expand Up @@ -108,7 +109,7 @@ const sendInvite = async () => {
/>
<button @click="sendInvite" class="send-game-invitation-button">Send Game Invitation</button>

<div class="suggestionList" :class="'game-invite-suggestions'">
<ScrollViewer :maxHeight="'50vh'" class="suggestionList" :class="'game-invite-suggestions'">
<ul v-if="showSuggestionList && userSuggestions.length" class="suggestionList">
<li
v-for="suggestion in userSuggestions"
Expand All @@ -118,7 +119,7 @@ const sendInvite = async () => {
{{ suggestion.username }}
</li>
</ul>
</div>
</ScrollViewer>
</div>
</template>

Expand All @@ -139,6 +140,7 @@ const sendInvite = async () => {
.game-invite-suggestions {
min-height: 15rem;
max-width: 228px;
max-height: 500px;
}
::placeholder {
Expand Down

0 comments on commit 36943e0

Please sign in to comment.