mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
Improve composer form indentation
This commit is contained in:
parent
7d15525c7d
commit
dc8f95c74d
2 changed files with 12 additions and 2 deletions
|
@ -44,7 +44,7 @@ function setUserHostMode(app, args, mode) {
|
|||
}
|
||||
|
||||
function markServerBufferUnread(app) {
|
||||
var activeBuffer = app.state.buffers.get(app.state.activeBuffer);
|
||||
let activeBuffer = app.state.buffers.get(app.state.activeBuffer);
|
||||
if (!activeBuffer || activeBuffer.type === BufferType.SERVER) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue