From 1d9178b592fd450d03bc645c1c2e56125c10e44a Mon Sep 17 00:00:00 2001 From: fangxin Date: Tue, 6 Aug 2024 19:33:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E8=81=8A=E5=A4=A9?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-web/src/components/chat/ChatBox.vue | 1900 ++++++++--------- im-web/src/components/chat/ChatInput.vue | 604 ++++++ .../src/components/chat/ChatMessageItem.vue | 11 +- 3 files changed, 1530 insertions(+), 985 deletions(-) create mode 100644 im-web/src/components/chat/ChatInput.vue diff --git a/im-web/src/components/chat/ChatBox.vue b/im-web/src/components/chat/ChatBox.vue index 6981db5..749f622 100644 --- a/im-web/src/components/chat/ChatBox.vue +++ b/im-web/src/components/chat/ChatBox.vue @@ -1,992 +1,924 @@ \ No newline at end of file diff --git a/im-web/src/components/chat/ChatInput.vue b/im-web/src/components/chat/ChatInput.vue new file mode 100644 index 0000000..6c254d0 --- /dev/null +++ b/im-web/src/components/chat/ChatInput.vue @@ -0,0 +1,604 @@ + + + + + \ No newline at end of file diff --git a/im-web/src/components/chat/ChatMessageItem.vue b/im-web/src/components/chat/ChatMessageItem.vue index 2c999ef..09bcdd9 100644 --- a/im-web/src/components/chat/ChatMessageItem.vue +++ b/im-web/src/components/chat/ChatMessageItem.vue @@ -280,6 +280,7 @@ position: absolute; left: -10px; top: 13px; + z-index: -1; width: 0; height: 0; border-style: solid dashed dashed; @@ -407,6 +408,14 @@ color: #329432; } } + + .chat-at-user { + background-color: #4cd964; + padding: 2px 5px; + color: white; + //border: 1px solid #c3c3c3; + border-radius: 3px; + } } } @@ -442,7 +451,7 @@ background-color: rgb(88, 127, 240); color: #fff; vertical-align: top; - + &:after { left: auto; right: -10px;