From 4c4ff9ada8c21c2aaebef08b35a172baf4ecabe3 Mon Sep 17 00:00:00 2001 From: taoshihan <630892807@qq.com> Date: Sun, 12 Jun 2022 23:23:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/common.css | 24 ++++++++++++++++++++---- static/templates/chat_main.html | 17 ++++++++++------- static/templates/nav.html | 2 +- static/templates/setting_left.html | 2 -- static/templates/setting_statistics.html | 11 ----------- 5 files changed, 31 insertions(+), 25 deletions(-) diff --git a/static/css/common.css b/static/css/common.css index 1e741ef..c1c75b1 100644 --- a/static/css/common.css +++ b/static/css/common.css @@ -276,7 +276,7 @@ } .chatRight{ height: 100%; - overflow: scroll; + background: #fff; overflow: scroll!important; } .onlineUsers { @@ -284,12 +284,16 @@ height: 40px; line-height: 40px; font-size: 14px; - border-bottom: solid 1px #e6e6e6; + border-bottom: solid 1px #f1f1f1; + border-left: 4px solid #fff; } .onlineUsers a{ color: #333; } -.onlineUsers:hover,.onlineUsers.cur{background-color: #f0f9eb;color: #67C23A;} +.onlineUsers:hover, .onlineUsers.cur { + background-color: rgb(238 247 255); + border-left: 4px solid #4299e2; +} .imgGray {-webkit-filter: grayscale(100%);-ms-filter: grayscale(100%);filter: grayscale(100%);filter: gray;color:#888;} .hasLastMsg{line-height: normal;} .lastNewMsg{font-size: 12px;color: #7f7f7f;margin-top: 4px;overflow: hidden;height: 16px;} @@ -412,7 +416,6 @@ a{color: #07a9fe;text-decoration: none;} font-size: 12px; min-height: 300px; background: #fff; - border: solid 1px #e6e6e6; margin-top: 5px; margin-bottom: 50px; } @@ -597,4 +600,17 @@ a{color: #07a9fe;text-decoration: none;} border-radius: 16px; font-size: 12px; padding: 4px 16px; +} +.chatRow { + display: flex; +} +.chatRowAvator { + margin-right: 10px; + flex-shrink: 0; +} +.chatBoxMe .chatRow { + float: right; +} +.chatBoxMe .chatRowAvator { + margin-left: 10px; } \ No newline at end of file diff --git a/static/templates/chat_main.html b/static/templates/chat_main.html index d0a61ee..8918421 100644 --- a/static/templates/chat_main.html +++ b/static/templates/chat_main.html @@ -43,7 +43,7 @@
- + @@ -57,7 +57,7 @@
- + <{item.name}> @@ -94,11 +94,14 @@
<{v.time}>
- - -
<{v.name}>
-
-
+
+ +
+
<{v.name}>
+
+
+ +
diff --git a/static/templates/nav.html b/static/templates/nav.html index ae9cc22..e647b67 100644 --- a/static/templates/nav.html +++ b/static/templates/nav.html @@ -10,7 +10,7 @@ 首页
-