fix: profile color scheme button is inaccessible

This commit is contained in:
James Xylight committed 2025-08-27 17:53:37 -07:00
1 parent 6f2e3c53f9
commit 078fdc2c71
3 files changed
+55 -45

No files matched your search

+6 -1
View File
@@ -21,7 +21,12 @@
ondismissed={() => shownModal.set(undefined)}
bind:open
>
<p>{$shownModal.body}</p>
{#if $shownModal.snippet}
{@render $shownModal.snippet()}
{/if}
{#if $shownModal.body}
<p>{$shownModal.body}</p>
{/if}
{#if $shownModal.actions}
<div
class="flex items-center gap-2 {$shownModal.actions.length >= 3
+5 -1
View File
@@ -1,3 +1,4 @@
import type { Snippet } from 'svelte'
import type { IconSource } from 'svelte-hero-icons'
import { writable } from 'svelte/store'
@@ -11,6 +12,7 @@ interface Modal {
* Whether the modal has a close button or not
*/
dismissable: boolean
snippet?: Snippet
type: 'error' | 'info' | 'success'
}
@@ -46,11 +48,12 @@ export const action = (action?: {
export function modal(inputModal: {
actions?: Action[]
title: string
body: string
body?: string
/**
* Whether the modal has a close button or not
*/
dismissable?: boolean
snippet?: Snippet
type?: 'error' | 'info' | 'success'
}) {
const modal: Modal = {
@@ -59,6 +62,7 @@ export function modal(inputModal: {
title: inputModal.title,
body: inputModal.body,
type: inputModal.type ?? 'info',
snippet: inputModal.snippet,
}
shownModal.set(modal)