mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-21 21:30:08 +00:00
Reduce jumpiness when loading the chat interface
This commit is contained in:
parent
3bdf037477
commit
4c6a8e8326
@ -389,15 +389,18 @@ #tpl_chat_log {
|
||||
|
||||
#chatInputContainer {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 1.48 * $wcfFontSizeDefault; // 1.48 is the default line height
|
||||
clear: both;
|
||||
|
||||
textarea {
|
||||
resize: none;
|
||||
}
|
||||
|
||||
.charCounter {
|
||||
float: right;
|
||||
color: $wcfContentDimmedText;
|
||||
margin-bottom: -(1.48 * $wcfFontSizeDefault);
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: none;
|
||||
}
|
||||
|
||||
> div {
|
||||
@ -536,6 +539,7 @@ #tpl_chat_log {
|
||||
background-color: $wcfContentBackground;
|
||||
|
||||
.modalCloseButton {
|
||||
border-top: 1px solid $wcfContentBorderInner;
|
||||
background-color: $wcfSidebarBackground;
|
||||
color: $wcfSidebarLink;
|
||||
display: block;
|
||||
@ -546,9 +550,7 @@ #tpl_chat_log {
|
||||
}
|
||||
|
||||
> div {
|
||||
border-top: none;
|
||||
border-right: none;
|
||||
border-left: none;
|
||||
border: none;
|
||||
|
||||
height: 0;
|
||||
flex: 1 1 auto;
|
||||
|
@ -135,6 +135,7 @@ define(['WoltLabSuite/Core/Date/Util', 'WoltLabSuite/Core/Language'], function (
|
||||
textarea.parentNode.classList.add('flexibleTextarea')
|
||||
}
|
||||
|
||||
textarea.removeAttribute('rows')
|
||||
textarea.classList.add('flexibleTextareaContent')
|
||||
pre.classList.add('flexibleTextareaMirror')
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
<div class="chatInputWrapper">
|
||||
<textarea maxlength="{CHAT_MAX_LENGTH}" class="long"></textarea>
|
||||
<textarea maxlength="{CHAT_MAX_LENGTH}" class="long" rows="1"></textarea>
|
||||
<span id="chatQuickSettings">
|
||||
<span class="icon icon24 fa-ellipsis-v"></span>
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user