added room invite button in rooms that should have it
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
<div v-if="isSidebarOpen" class="sidebar-overlay" @click="isSidebarOpen = false"></div>
|
||||
|
||||
<main class="chat-window-container">
|
||||
<main class="chat-window-container" :class="{ 'sidebar-is-open': isSidebarOpen }">
|
||||
<ChatWindow :uuid="uuid" />
|
||||
</main>
|
||||
</div>
|
||||
@@ -99,6 +99,12 @@ const handleRoomSelection = () => {
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
|
||||
@media (min-width: 721px) {
|
||||
.chat-window-container.sidebar-is-open {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.sidebar {
|
||||
position: absolute;
|
||||
|
||||
@@ -63,6 +63,7 @@ async function acceptRoom(senderUuid: string, roomUuid: string) {
|
||||
// fetchFriends().then(f => (friends.value = f))
|
||||
} catch (err) {
|
||||
errorMessage.value = 'An error occurred while accepting the invite.' // TODO: handle this case
|
||||
throw err
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user