Rename sidebar and topbar

This commit is contained in:
Simon Ser 2020-06-26 15:16:07 +02:00
parent 1b0ac4339f
commit 15c51d9ec7
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 20 additions and 20 deletions

View file

@ -508,10 +508,10 @@ export default class App extends Component {
activeBuffer = this.state.buffers.get(this.state.activeBuffer);
}
var topbar = null;
var bufferHeader = null;
if (activeBuffer) {
topbar = html`
<section id="topbar">
bufferHeader = html`
<section id="buffer-header">
<${BufferHeader} buffer=${activeBuffer} onClose=${() => this.close(activeBuffer.name)}/>
</section>
`;
@ -530,10 +530,10 @@ export default class App extends Component {
}
return html`
<section id="sidebar">
<section id="buffer-list">
<${BufferList} buffers=${this.state.buffers} activeBuffer=${this.state.activeBuffer} onBufferClick=${this.handleBufferListClick}/>
</section>
${topbar}
${bufferHeader}
<${ScrollManager} target=${this.buffer} scrollKey=${this.state.activeBuffer}>
<section id="buffer" ref=${this.buffer}>
<${Buffer} buffer=${activeBuffer} onNickClick=${this.handleNickClick}/>