diff --git a/src/App.vue b/src/App.vue index b7c487e..da08dba 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,7 +28,7 @@ input{ color: #fff; background-color: #1d1d1d; border-radius: 1.25rem; - border: 1px solid #fff; + border: 0.1rem solid #fff; text-align: center; font-size: 1.1rem; margin: 0.5rem; diff --git a/src/components/chatInformation.vue b/src/components/chatInformation.vue index b2b70f3..72f317b 100644 --- a/src/components/chatInformation.vue +++ b/src/components/chatInformation.vue @@ -18,15 +18,15 @@

and {{members.length-20}} other members

- + @@ -85,7 +98,7 @@ export default { top: 3.5rem; width: 100%; height: calc(100% - 7rem); - .messagesContainer{ + .timelineContainer{ height: 100%; overflow-y: auto; } diff --git a/src/views/rooms.vue b/src/views/rooms.vue index 74a410e..3a9bc23 100644 --- a/src/views/rooms.vue +++ b/src/views/rooms.vue @@ -6,7 +6,11 @@

[chat]

[c]

-
+
Please select a room to be displayed.
- +
@@ -34,6 +38,7 @@ import {matrix} from "@/main"; import ThrobberOverlay from "@/components/throbberOverlay"; import {getMxcFromRoom} from "@/lib/getMxc"; import roomListElement from "@/components/roomListElement"; +import {getRoom} from "@/lib/matrixUtils"; export default { name: "rooms", @@ -46,18 +51,25 @@ export default { methods:{ openChat(room){ this.showChatInfo = false; - this.currentRoom = undefined - this.$nextTick(() => this.currentRoom = room); + this.showRoom = false; this.$router.push(`/rooms/${room.roomId}`); + this.$nextTick(() => this.showRoom = true); this.search = ''; }, - getMxcFromRoom + getMxcFromRoom, + getRoom, + getCurrentRoom(){ + return getRoom(this.$route.path.split('/')[2]); + }, + closeChat(){ + this.$router.push('/rooms'); + } }, data(){ return { matrix, - currentRoom: undefined, showChatInfo: false, + showRoom: true, search: '' } }, @@ -102,7 +114,7 @@ export default { text-align: center; } input{ - width: calc(100% - 5rem); + width: calc(100% - 5.2rem); } .wideElement{ display: block;