added room invite button in rooms that should have it

This commit is contained in:
2025-12-31 15:44:45 +01:00
parent e7a575ae03
commit e3f9b3b8e9
10 changed files with 220 additions and 24 deletions

View File

@@ -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;

View File

@@ -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>