🌈style(view): fix body scroll (#84)

Co-authored-by: lqzh <[email protected]>
This commit is contained in:
lqzhgood
2021-04-13 15:58:53 -07:00
committed by GitHub
co-authored by lqzh
parent 1009d8fcb2
commit 76f0a8f44e
2 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -9,8 +9,8 @@
<body>
<div id="chat" class="chatPanel normalPanel">
<div class="chatMainPanel" id="chatMainPanel" style="padding-top:40px;">
<div class="chatTitle" style="margin-top: -40px;">
<div class="chatMainPanel" id="chatMainPanel">
<div class="chatTitle">
<div class="chatNameWrap">
<p class="chatName" id="messagePanelTitle">{chat}</p>
</div>
+7 -4
View File
@@ -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;