Add the ability to select images with the ArtBrowser

This commit is contained in:
Oliver 2026-01-29 23:04:20 -07:00
parent e1606ac2f3
commit 0381df035e
4 changed files with 104 additions and 7 deletions

View file

@ -1,11 +1,23 @@
<li class="image grid">
<li
class="image grid"
data-image-id="{{image.id}}"
>
<img
src="{{tb-filePath image.path}}"
alt=""
>
{{#if (eq selectMode "single")}}
<button>Select</button>
<button
data-action="select"
>
Select
</button>
{{else if (eq selectMode "multi")}}
<input type="checkbox">
<button
data-action="select"
aria-pressed="{{image.selected}}"
>
Select (Multi)
</button>
{{/if}}
</li>