feat: add image filters, update some logic and workflow

This commit is contained in:
2026-02-21 11:41:30 +05:00
parent 53662293b8
commit 42f250bcb5
16 changed files with 384 additions and 123 deletions
+29 -3
View File
@@ -1,15 +1,26 @@
<script lang="ts">
import type { Snippet } from "svelte";
import Button from "$components/ui/Button.svelte";
import type { Component, Snippet } from "svelte";
interface Props {
children: Snippet;
label: string;
icon: Component;
}
let { children }: Props = $props();
let { children, label = "fuf", icon }: Props = $props();
let expanded = $state(false);
</script>
<div class="settings-grid">
{@render children()}
<label>
{label}
<Button {icon} ariaLabel="Expand" type="mini" onclick={() => (expanded = !expanded)} />
</label>
{#if expanded}
{@render children()}
{/if}
</div>
<style>
@@ -17,5 +28,20 @@
display: flex;
flex-direction: column;
gap: 12px;
padding: 12px;
background: var(--surface-subtle);
border-radius: var(--radius);
border: 1px solid var(--border-main);
}
label {
color: var(--text-main);
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
font-size: 16px;
cursor: pointer;
user-select: none;
}
</style>