diff --git a/front/volume/src/components/Channels.svelte b/front/volume/src/components/Channels.svelte index 71f847a..0bed000 100644 --- a/front/volume/src/components/Channels.svelte +++ b/front/volume/src/components/Channels.svelte @@ -10,7 +10,11 @@
@@ -58,7 +77,7 @@
  • {_channels.name} -
  • + {/each} {:else}

    No channels available

    @@ -76,7 +95,6 @@ width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); - z-index: 9998; display: flex; justify-content: center; align-items: center; diff --git a/front/volume/src/components/Chat.svelte b/front/volume/src/components/Chat.svelte index 3bb305f..b0abbd9 100644 --- a/front/volume/src/components/Chat.svelte +++ b/front/volume/src/components/Chat.svelte @@ -5,10 +5,21 @@ text: string; } import { createEventDispatcher, onMount } from "svelte"; - import { store } from "../Auth"; + import { store, API_URL } from "../Auth"; + import type { Player } from "./Profile.svelte"; + interface User { + username: string; + }
    @@ -66,36 +104,20 @@ on:keydown|stopPropagation > @@ -107,6 +129,26 @@ send + + {#if showChatMembers} +
    +
    +
      + {#each chatMembers as member} +
    • +

      + {member.username} + + + + +

      +
    • + {/each} +
    +
    +
    + {/if}
    @@ -118,7 +160,6 @@ width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); - z-index: 9998; display: flex; justify-content: center; align-items: center; @@ -136,4 +177,24 @@ height: 200px; overflow-y: scroll; } + + .chatMembers { + position: absolute; + background-color: #fff; + border: 1px solid #ccc; + border-radius: 5px; + padding: 1rem; + max-height: 100px; + overflow-y: scroll; + } + + .chatMembers ul { + list-style: none; + padding: 0; + margin: 0; + } + + .chatMembers button { + width: 3.5rem; + }