🧼 Makes fullscreen button a button
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
import MdiFullscreenExit from '~icons/mdi/fullscreen-exit';
|
||||
</script>
|
||||
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<div on:click={toggleFullscreen}>
|
||||
<svelte:component this={isFullscreen ? MdiFullscreenExit : MdiFullscreen} class="h-7 w-7" />
|
||||
</div>
|
||||
<button on:click={toggleFullscreen}>
|
||||
<svelte:component this={$isFullscreen ? MdiFullscreenExit : MdiFullscreen} class="h-7 w-7" />
|
||||
</button>
|
||||
Reference in New Issue
Block a user