From 52fb966dc5ca918cc4bfa97832ab7af559269ba5 Mon Sep 17 00:00:00 2001 From: lqzhgood <9134671+lqzhgood@users.noreply.github.com> Date: Wed, 14 Apr 2021 06:58:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=88style(view):=20fix=20body=20scroll?= =?UTF-8?q?=20(#84)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: lqzh --- wechat/static/TP_INDEX.html | 4 ++-- wechat/static/wx.css | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/wechat/static/TP_INDEX.html b/wechat/static/TP_INDEX.html index a1559d2..18bf379 100644 --- a/wechat/static/TP_INDEX.html +++ b/wechat/static/TP_INDEX.html @@ -9,8 +9,8 @@
-
-
+
+

{chat}

diff --git a/wechat/static/wx.css b/wechat/static/wx.css index 7deb270..a360a76 100644 --- a/wechat/static/wx.css +++ b/wechat/static/wx.css @@ -3,7 +3,8 @@ html, body { word-break: normal; word-wrap: break-word; -} +} + /* for single line hack */ .chatListColumn .nickName, .chatListColumn .desc { @@ -144,7 +145,9 @@ body { text-align: center; } body { - position: relative; + position: relative; + padding: 20px 0; + box-sizing: border-box; } a, input { @@ -813,7 +816,7 @@ a.btnSecondary:active { .chatPanel { position: relative; margin: 0 auto; - padding: 40px 0 30px 0; + // padding: 40px 0 30px 0; width: 600px; border-radius: 4px; text-align: center; @@ -1278,7 +1281,7 @@ a.btnSecondary:active { } /*会话内容窗体*/ .chatPanel .chatScorll { - height: 100%; + height: calc(100vh - 42px - 40px); // 42px topbar 40px bodyPadding width: 100%; min-height: 200px; overflow: hidden;