Skip to content

Commit

Permalink
#127 adjust spacing for next back buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
neil authored and neil committed Mar 9, 2023
1 parent f06ea8a commit 9b71a78
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions modules/desktop/src/components/top-bar/top-bar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@
</script>

<header class="border-gray flex w-full border border-l-0 border-r-0" style="-webkit-app-region: drag">
<div class="w-16">
<div class="w-16 mr-2">
<!-- just spacing for the close/expand/ buttons in title bar
todo: handle this different when on linux probably move to right
-->
</div>
<ul class="text-gray flex h-10 gap-4 pl-4 align-middle leading-10">
<button on:click={navStore.back} class={$prevPath ? 'active' : ''}>&#8592</button>
<button on:click={navStore.next} class={$nextPath ? 'active' : ''}>&#8594</button>
</ul>
{#if $prevPath || $nextPath}
<ul class="text-gray flex h-10 gap-4 pl-2 align-middle leading-10 mr-2">
<button on:click={navStore.back} class={$prevPath ? 'active' : ''}>&#8592</button>
<button on:click={navStore.next} class={$nextPath ? 'active' : ''}>&#8594</button>
</ul>
{/if}
<div class="p-1 flex-grow h-8">
<SearchInput
class="w-full border border-gray rounded-sm"
Expand Down

0 comments on commit 9b71a78

Please sign in to comment.