From 9d1adfe748fa88e1ba6088ced826ae8bd12b8dac Mon Sep 17 00:00:00 2001 From: hippoz Date: Fri, 20 Nov 2020 11:59:48 +0200 Subject: [PATCH] attempt (and fail) to put message div before the textobx --- app/app.html | 32 +++++++++++++++++++++++++++----- app/resources/js/app.js | 7 +++++++ 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/app/app.html b/app/app.html index cfbf90f..ed4ce31 100755 --- a/app/app.html +++ b/app/app.html @@ -25,11 +25,28 @@ .cursor { cursor: pointer; } + + .chat-bar { + position: fixed !important; + left: 0 !important; + bottom: 0 !important; + width: 98% !important; + margin-left: 1% !important; + } + + .as-console-wrapper { + display: none !important; + } + + .posts-container { + overflow-y: auto; + height: calc(90vh - 100px); + }
-
+
Create category @@ -78,7 +95,7 @@ - +

Brainlet

@@ -96,7 +113,7 @@ Refresh
-
+
@@ -115,13 +132,13 @@ {{ post.author.username }}
- + {{ post.content }}

- + add edit @@ -139,6 +156,11 @@ + + + + +
{{ snackbarNotification }} diff --git a/app/resources/js/app.js b/app/resources/js/app.js index e5acd6f..9c5e912 100755 --- a/app/resources/js/app.js +++ b/app/resources/js/app.js @@ -171,6 +171,9 @@ const app = new Vue({ gateway: new GatewayConnection(), messages: { 'X': [ { username: 'NONEXISTENT_TEST_ACCOUNT', content: 'TEST MSG' } ] + }, + message: { + typed: '' } }, mounted: async function() { @@ -234,6 +237,10 @@ const app = new Vue({ this.selection.category.title = 'Chat'; this.selection.category._id = categoryId; }, + sendCurrentMessage: async function() { + this.gateway.sendMessage(this.selection.category._id, this.message.typed); + this.message.typed = ''; + }, // Category and post browsing browseCategories: async function() {