Skip to content

Commit

Permalink
feat: use tool bar only on opened docs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidenke committed Oct 23, 2024
1 parent e0bca0a commit 6789fb1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/root/root.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,19 @@ export class Root extends LitElement {
override render() {
return html`
<xlp-title-bar role="banner"></xlp-title-bar>
<xlp-tool-bar role="navigation" hide-after="500"></xlp-tool-bar>
<main>
${when(
this.filePath === undefined,
() => html`<xlp-preview>${unsafeHTML(this.fileContent)}</xlp-preview>`,
() => html`
<xlp-select-file @path="${this.loadFile}">
<xlp-icon>place_item</xlp-icon>
Xmind-Datei hier ablegen
</xlp-select-file>
`,
() => html`
<xlp-preview>${unsafeHTML(this.fileContent)}</xlp-preview>
<xlp-tool-bar role="navigation" hide-after="2000"></xlp-tool-bar>
`,
)}
</main>
`;
Expand Down

0 comments on commit 6789fb1

Please sign in to comment.