frontend: image file picker

This commit is contained in:
OleSTEEP 2025-10-10 00:02:18 +03:00
parent ac97e5b152
commit 831f3a5f98
2 changed files with 18 additions and 8 deletions

View file

@ -1,13 +1,14 @@
<script>
import AddButton from "./add_button.svelte";
let { direction = "horisontal", input = true } = $props();
let { direction = "horisontal", image = $bindable() } = $props();
$effect(() => {
console.log(image);
});
</script>
<div class="{direction} {input ? "input" : ""} image rounded">
<AddButton size=48 handler={() => {
// addImage(plus.id, this.id);
// document.getElementById("screenshots").appendChild(new HorisontalImage().html);
}}/>
<div class="{direction} input image rounded">
<AddButton type="image" bind:files={image}/>
</div>
<style>