PLT-5985 Cleaned up CSS for post textbox (#5974)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
6bb65ef420
Коммит
77a76487a8
@@ -246,6 +246,14 @@ export default class Textbox extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
let textboxClassName = 'form-control custom-textarea';
|
||||||
|
if (this.props.emojiEnabled) {
|
||||||
|
textboxClassName += ' custom-textarea--emoji-picker';
|
||||||
|
}
|
||||||
|
if (this.state.connection) {
|
||||||
|
textboxClassName += ' ' + this.state.connection;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref='wrapper'
|
ref='wrapper'
|
||||||
@@ -254,7 +262,7 @@ export default class Textbox extends React.Component {
|
|||||||
<SuggestionBox
|
<SuggestionBox
|
||||||
id={this.props.id}
|
id={this.props.id}
|
||||||
ref='message'
|
ref='message'
|
||||||
className={`form-control custom-textarea${this.props.emojiEnabled ? '-emoji' : ''} ${this.state.connection}`}
|
className={textboxClassName}
|
||||||
type='textarea'
|
type='textarea'
|
||||||
spellCheck='true'
|
spellCheck='true'
|
||||||
placeholder={this.props.createMessage}
|
placeholder={this.props.createMessage}
|
||||||
|
|||||||
@@ -71,8 +71,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-textarea,
|
.custom-textarea {
|
||||||
.custom-textarea-emoji {
|
|
||||||
min-height: 100px;
|
min-height: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,12 +15,12 @@
|
|||||||
border-color: #cccccc;
|
border-color: #cccccc;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.bad-connection {
|
&.bad-connection {
|
||||||
background: #ffffac !important;
|
background: #ffffac !important;
|
||||||
color: #d04444 !important;
|
color: #d04444 !important;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.textarea-wrapper {
|
.textarea-wrapper {
|
||||||
min-height: 37px;
|
min-height: 37px;
|
||||||
@@ -362,31 +362,34 @@
|
|||||||
label {
|
label {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
.custom-textarea {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
form {
|
form {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: .5em 15px 0;
|
padding: .5em 15px 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
#reply_textbox.custom-textarea-emoji{
|
|
||||||
bottom: 0;
|
|
||||||
max-height: 162px !important;
|
|
||||||
padding-right: 60px;
|
|
||||||
padding-top: 6px;
|
|
||||||
resize: none;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
.center {
|
.center {
|
||||||
max-width: 1028px;
|
max-width: 1028px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-create {
|
.custom-textarea {
|
||||||
&.scroll {
|
bottom: 0;
|
||||||
|
max-height: 162px;
|
||||||
|
padding-top: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
resize: none;
|
||||||
|
|
||||||
|
&:not(.custom-textarea--emoji-picker) {
|
||||||
|
padding-right: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.custom-textarea--emoji-picker {
|
||||||
|
padding-right: 60px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-create.scroll {
|
||||||
.btn-file {
|
.btn-file {
|
||||||
right: 10px;
|
right: 10px;
|
||||||
}
|
}
|
||||||
@@ -394,21 +397,13 @@ form {
|
|||||||
.custom-textarea {
|
.custom-textarea {
|
||||||
-ms-overflow-style: auto;
|
-ms-overflow-style: auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
|
&:not(.custom-textarea--emoji-picker) {
|
||||||
padding-right: 43px;
|
padding-right: 43px;
|
||||||
resize: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#post_textbox-reference.custom-textarea-emoji {
|
&.custom-textarea--emoji-picker {
|
||||||
padding-right: 43px;
|
|
||||||
resize: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#post_textbox.custom-textarea-emoji {
|
|
||||||
padding-right: 60px;
|
padding-right: 60px;
|
||||||
resize: none;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -443,41 +438,6 @@ form {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-textarea {
|
|
||||||
bottom: 0;
|
|
||||||
max-height: 162px !important;
|
|
||||||
padding-right: 35px;
|
|
||||||
padding-top: 8px;
|
|
||||||
resize: none;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#post_textbox-reference.custom-textarea-emoji {
|
|
||||||
bottom: 0;
|
|
||||||
max-height: 162px !important;
|
|
||||||
padding-right: 35px;
|
|
||||||
padding-top: 8px;
|
|
||||||
resize: none;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#post_textbox.custom-textarea-emoji {
|
|
||||||
bottom: 0;
|
|
||||||
max-height: 162px !important;
|
|
||||||
padding-right: 60px;
|
|
||||||
padding-top: 8px;
|
|
||||||
resize: none;
|
|
||||||
|
|
||||||
}
|
|
||||||
.textarea-div {
|
|
||||||
line-height: 1.5;
|
|
||||||
max-height: 163px !important;
|
|
||||||
overflow: auto;
|
|
||||||
padding-right: 30px;
|
|
||||||
padding-top: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-file {
|
.btn-file {
|
||||||
@include single-transition(all, .15s);
|
@include single-transition(all, .15s);
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user