From fa93e007590ffe715881cfe890ca170d38ced439 Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Mon, 7 Jul 2025 22:22:20 +0200 Subject: [PATCH 1/6] feat: improve message box :3 --- components/MessageArea.vue | 64 ++++++++++++++++++++++++++++---------- public/themes/dark.css | 2 +- 2 files changed, 48 insertions(+), 18 deletions(-) diff --git a/components/MessageArea.vue b/components/MessageArea.vue index 81221f0..1247f31 100644 --- a/components/MessageArea.vue +++ b/components/MessageArea.vue @@ -9,11 +9,23 @@
+
+ + + +
+ - + +
+ + + + +
@@ -249,33 +261,51 @@ router.beforeEach((to, from, next) => { } #message-box { - display: flex; - flex-direction: column; - justify-content: center; - align-content: center; - border: 1px solid var(--padding-color); - padding-bottom: 1dvh; - padding-top: 1dvh; - margin-bottom: 1dvh; + /* flex-direction: column; */ + /* justify-content: center; */ + /* align-content: center; */ + /* padding-bottom: 1dvh; */ + /* padding-top: 1dvh; */ + margin-bottom: 2dvh; margin-left: 1dvw; margin-right: 1dvw; - background: var(--optional-message-box-background); + /* background: var(--optional-message-box-background); */ } #message-form { display: flex; + flex-direction: row; + + border: 1px solid var(--padding-color); + height: 100%; + padding-left: 2%; + padding-right: 2%; + + min-height: 100%; justify-content: center; + background-color: var(--chatbox-background-color); } #message-box-input { - width: 80%; + height: 100%; + width: 100%; + margin-left: 1.5%; + margin-right: 1.5%; + + box-sizing: border-box; + display: inline-block; + vertical-align: top; + border: none; color: inherit; - padding-left: 1dvw; - padding-right: 1dvw; background-color: var(--chatbox-background-color); } +#message-box-left-elements, #message-box-right-elements { + display: flex; + align-items: center; +} + #messages { overflow-y: scroll; display: flex; @@ -284,7 +314,7 @@ router.beforeEach((to, from, next) => { padding-right: 1dvw; } -#submit-button { +.message-box-button { background-color: inherit; border: none; color: var(--primary-color); @@ -292,7 +322,7 @@ router.beforeEach((to, from, next) => { font-size: 1.5em; } -#submit-button:hover { +.message-box-button:hover { color: var(--primary-highlighted-color); cursor: pointer; } diff --git a/public/themes/dark.css b/public/themes/dark.css index b999e93..af94112 100644 --- a/public/themes/dark.css +++ b/public/themes/dark.css @@ -7,7 +7,7 @@ --sidebar-background-color: #2e2a27; --sidebar-highlighted-background-color: #36322b; --topbar-background-color: #2a2723; - --chatbox-background-color: #2a2723; + --chatbox-background-color: #1a1713; --padding-color: #484848; From 51c2578e60573b986526d7d1af36cd237f86b603 Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Tue, 8 Jul 2025 15:45:18 +0200 Subject: [PATCH 2/6] fix: remove unused code, set chatbox input to a transparent colour --- components/MessageArea.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/components/MessageArea.vue b/components/MessageArea.vue index 1247f31..9bf6df8 100644 --- a/components/MessageArea.vue +++ b/components/MessageArea.vue @@ -261,15 +261,9 @@ router.beforeEach((to, from, next) => { } #message-box { - /* flex-direction: column; */ - /* justify-content: center; */ - /* align-content: center; */ - /* padding-bottom: 1dvh; */ - /* padding-top: 1dvh; */ margin-bottom: 2dvh; margin-left: 1dvw; margin-right: 1dvw; - /* background: var(--optional-message-box-background); */ } #message-form { @@ -298,7 +292,7 @@ router.beforeEach((to, from, next) => { border: none; color: inherit; - background-color: var(--chatbox-background-color); + background-color: #00000000; /* completely transparent colour */ } #message-box-left-elements, #message-box-right-elements { From f1bec945fe0cd7a23eccb9a499a0b11da4de951a Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Wed, 9 Jul 2025 03:36:30 +0200 Subject: [PATCH 3/6] feat: multiline message box this implementation SUCKS and i probably have to write an entirely custom solution where every line is a div or something --- components/MessageArea.vue | 64 +++++++++++++++++++++++--------------- 1 file changed, 39 insertions(+), 25 deletions(-) diff --git a/components/MessageArea.vue b/components/MessageArea.vue index 9bf6df8..34a79fa 100644 --- a/components/MessageArea.vue +++ b/components/MessageArea.vue @@ -14,9 +14,11 @@ - - +