mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
* stlye: forms * style: navigation bar * style: user profile popup * style: context menu * fix: prettier * style: manage account dark theme color * style: user profile image border; fix: profile panel z-index * style: border for profile image on hover and scrolling in administration page * style: font size * style: gap between day in a row
26 lines
493 B
Svelte
26 lines
493 B
Svelte
<script>
|
|
import { createEventDispatcher } from 'svelte';
|
|
|
|
export let isDisabled = false;
|
|
export let text = '';
|
|
|
|
const dispatch = createEventDispatcher();
|
|
|
|
const handleClick = () => {
|
|
if (isDisabled) return;
|
|
|
|
dispatch('click');
|
|
};
|
|
</script>
|
|
|
|
<button
|
|
class:disabled={isDisabled}
|
|
on:click={handleClick}
|
|
class="bg-slate-100 hover:bg-gray-200 dark:text-immich-dark-bg transition-all p-4 w-full text-left text-sm font-medium"
|
|
>
|
|
{#if text}
|
|
{text}
|
|
{:else}
|
|
<slot />
|
|
{/if}
|
|
</button>
|