fix: replace raw HTML buttons with Button component in admin, remove vite-plugin-wasm

- Use Button component for photo remove, editor tab toggle, and model
  pill buttons across admin/users, admin/articles, admin/videos
- Remove vite-plugin-wasm from frontend devDependencies (no longer
  needed since WASM is served by the buttplug nginx container)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-08 17:11:24 +01:00
parent b55cebea4e
commit 2afa3c6e9b
6 changed files with 31 additions and 29 deletions

View File

@@ -180,9 +180,10 @@
<Label>Models</Label>
<div class="flex flex-wrap gap-2">
{#each data.models as model (model.id)}
<button
type="button"
class={`px-3 py-1.5 rounded-full text-sm border transition-colors ${
<Button
variant="ghost"
size="sm"
class={`px-3 py-1.5 h-auto rounded-full text-sm border transition-colors ${
selectedModelIds.includes(model.id)
? "border-primary bg-primary/10 text-primary"
: "border-border/40 text-muted-foreground hover:border-primary/40"
@@ -190,7 +191,7 @@
onclick={() => toggleModel(model.id)}
>
{model.artist_name || model.id}
</button>
</Button>
{/each}
</div>
</div>