Improve composer form indentation

This commit is contained in:
Simon Ser 2021-06-22 13:38:05 +02:00
parent 7d15525c7d
commit dc8f95c74d
2 changed files with 12 additions and 2 deletions

View file

@ -83,8 +83,18 @@ export default class Composer extends Component {
}
render() {
let className = "";
if (this.props.readOnly && !this.state.text) {
className = "read-only";
}
return html`
<form id="composer" class="${this.props.readOnly && !this.state.text ? "read-only" : ""}" onInput=${this.handleInput} onSubmit=${this.handleSubmit}>
<form
id="composer"
class=${className}
onInput=${this.handleInput}
onSubmit=${this.handleSubmit}
>
<input
type="text"
name="text"