Переглянути джерело

fix: controls not being shown in mobile

Timothy Jaeryang Baek 5 місяців тому
батько
коміт
3cfd4f8993
1 змінених файлів з 14 додано та 0 видалено
  1. 14 0
      src/lib/components/layout/Navbar.svelte

+ 14 - 0
src/lib/components/layout/Navbar.svelte

@@ -115,6 +115,20 @@
 							</div>
 						</button>
 					</Menu>
+				{:else if $mobile}
+					<Tooltip content={$i18n.t('Controls')}>
+						<button
+							class=" flex cursor-pointer px-2 py-2 rounded-xl hover:bg-gray-50 dark:hover:bg-gray-850 transition"
+							on:click={async () => {
+								await showControls.set(!$showControls);
+							}}
+							aria-label="Controls"
+						>
+							<div class=" m-auto self-center">
+								<AdjustmentsHorizontal className=" size-5" strokeWidth="0.5" />
+							</div>
+						</button>
+					</Tooltip>
 				{/if}
 
 				{#if !$mobile}