-
-
- {{ date.toLocaleTimeString(undefined, { timeStyle: "short" }) }}
-
-
+
+ {{ date.toLocaleTimeString(undefined, { timeStyle: "short" }) }}
+
-
@@ -82,12 +80,15 @@ onMounted(async () => {
.message {
text-align: left;
/* border: 1px solid lightcoral; */
- display: contents;
+ display: grid;
+ grid-template-columns: 2dvw 1fr;
align-items: center;
+ column-gap: 1dvw;
+ width: 100%;
}
-.message-margin-bottom > * {
- margin-bottom: 1dvh;
+.message:hover {
+ background-color: rgb(20, 20, 20);
}
.normal-message {
@@ -95,7 +96,7 @@ onMounted(async () => {
}
#last-message {
- margin-bottom: 1dvh;
+ margin-bottom: 2dvh;
}
.message-metadata {
@@ -109,8 +110,8 @@ onMounted(async () => {
margin-left: .5dvw;
display: flex;
flex-direction: column;
- gap: 1dvh;
- height: 100%;
+ height: fit-content;
+ width: 100%;
}
.message-author {
@@ -119,15 +120,15 @@ onMounted(async () => {
}
.message-author-avatar {
- height: 2.3em;
- width: 2.3em;
+ width: 100%;
border-radius: 50%;
}
.left-column {
+ display: flex;
text-align: center;
- align-content: center;
white-space: nowrap;
+
}
.author-username {
@@ -143,6 +144,9 @@ onMounted(async () => {
.side-message-date {
font-size: .625em;
+ display: flex;
+ align-items: center;
+ align-content: center;
}
/*
@@ -154,14 +158,13 @@ onMounted(async () => {
diff --git a/components/MessageArea.vue b/components/MessageArea.vue
index e142641..104788e 100644
--- a/components/MessageArea.vue
+++ b/components/MessageArea.vue
@@ -245,9 +245,8 @@ onMounted(async () => {
#messages {
overflow-y: scroll;
- display: grid;
- grid-template-columns: min-content 1fr;
- gap: 1dvh;
+ display: flex;
+ flex-direction: column;
padding-left: 1dvw;
padding-right: 1dvw;
}