Improve nav buttons

This commit is contained in:
ZXY101
2023-10-04 20:06:41 +02:00
parent b71e1549df
commit 04cf5a8a53

View File

@@ -271,29 +271,26 @@
</button> </button>
<div class="flex" style:background-color={$settings.backgroundColor}> <div class="flex" style:background-color={$settings.backgroundColor}>
<Panzoom> <Panzoom>
{#if !$settings.mobile} <button
<button class="h-full fixed -left-full z-10 w-full hover:bg-slate-400 opacity-[0.01]"
class="h-full fixed -left-1/2 z-10 w-1/2 hover:bg-slate-400 opacity-[0.01]" on:mousedown={mouseDown}
on:mousedown={mouseDown} on:mouseup={left}
on:mouseup={left} />
/> <button
<button class="h-full fixed -right-full z-10 w-full hover:bg-slate-400 opacity-[0.01]"
class="h-full fixed -right-1/2 z-10 w-1/2 hover:bg-slate-400 opacity-[0.01]" on:mousedown={mouseDown}
on:mousedown={mouseDown} on:mouseup={right}
on:mouseup={right} />
/> <button
{:else} class="h-screen fixed top-full -left-full z-10 w-[150%] hover:bg-slate-400 opacity-[0.01]"
<button on:mousedown={mouseDown}
class="h-screen fixed top-full left-0 z-10 w-1/2 hover:bg-slate-400 opacity-[0.01]" on:mouseup={left}
on:mousedown={mouseDown} />
on:mouseup={left} <button
/> class="h-screen fixed top-full -right-full z-10 w-[150%] hover:bg-slate-400 opacity-[0.01]"
<button on:mousedown={mouseDown}
class="h-screen fixed top-full right-0 z-10 w-1/2 hover:bg-slate-400 opacity-[0.01]" on:mouseup={right}
on:mousedown={mouseDown} />
on:mouseup={right}
/>
{/if}
<div <div
class="flex flex-row" class="flex flex-row"
class:flex-row-reverse={!$settings.rightToLeft} class:flex-row-reverse={!$settings.rightToLeft}