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