Skip to content

Commit

Permalink
fix bug where the home button wouldn't show correctly which was cause…
Browse files Browse the repository at this point in the history
…d by dynamically rendering it with #if
  • Loading branch information
hahn-kev committed Jul 5, 2024
1 parent 1b9c298 commit a90bf79
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions frontend/viewer/src/ProjectView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,12 @@
{:else}
<div class="project-view !flex flex-col PortalTarget" style="{spaceForEditorStyle}">
<AppBar title={projectName} class="bg-secondary min-h-12 shadow-md">
{#if showHomeButton}
<Button
slot="menuIcon"
icon={mdiHome}
on:click={() => navigate('/')}
/>
{/if}
<Button
classes={{root: showHomeButton ? '' : 'hidden'}}
slot="menuIcon"
icon={mdiHome}
on:click={() => navigate('/')}
/>
<div class="flex-grow-0 flex-shrink-0 lg:hidden mx-2 sm:mr-0" class:invisible={!pickedEntry}>
<Button icon={mdiArrowLeft} size="sm" iconOnly rounded variant="outline" on:click={() => pickedEntry = false} />
</div>
Expand Down

0 comments on commit a90bf79

Please sign in to comment.