Fix hover in whitemode

This commit is contained in:
Jannik Streidl 2024-04-03 16:00:06 +02:00
parent 5558514ff1
commit 15d24a6a11

View file

@ -581,7 +581,7 @@
<div class="py-2 w-full"> <div class="py-2 w-full">
{#if $user.role === 'admin'} {#if $user.role === 'admin'}
<button <button
class="flex py-2.5 px-3.5 w-full dark:hover:bg-gray-800 transition" class="flex py-2.5 px-3.5 w-full hover:bg-gray-100 dark:hover:bg-gray-800 transition"
on:click={() => { on:click={() => {
goto('/admin'); goto('/admin');
showDropdown = false; showDropdown = false;
@ -607,7 +607,7 @@
</button> </button>
<button <button
class="flex py-2.5 px-3.5 w-full dark:hover:bg-gray-800 transition" class="flex py-2.5 px-3.5 w-full hover:bg-gray-100 dark:hover:bg-gray-800 transition"
on:click={() => { on:click={() => {
goto('/playground'); goto('/playground');
showDropdown = false; showDropdown = false;
@ -634,7 +634,7 @@
{/if} {/if}
<button <button
class="flex py-2.5 px-3.5 w-full dark:hover:bg-gray-800 transition" class="flex py-2.5 px-3.5 w-full hover:bg-gray-100 dark:hover:bg-gray-800 transition"
on:click={async () => { on:click={async () => {
await showSettings.set(true); await showSettings.set(true);
showDropdown = false; showDropdown = false;
@ -669,7 +669,7 @@
<div class="py-2 w-full"> <div class="py-2 w-full">
<button <button
class="flex py-2.5 px-3.5 w-full dark:hover:bg-gray-800 transition" class="flex py-2.5 px-3.5 w-full hover:bg-gray-100 dark:hover:bg-gray-800 transition"
on:click={() => { on:click={() => {
localStorage.removeItem('token'); localStorage.removeItem('token');
location.href = '/auth'; location.href = '/auth';