Image picker: tidier desktop layout

The box and its Choose/Paste buttons form the left column, so it lines up
with the fields beside it; Remove is a ✕ on the image and hovering an image
says how to replace it. Alt text comes first, the Image URL is smaller and
explained. Without fields (Services & products) the hint and the page's own
note sit beside the box.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
This commit is contained in:
agent 2026-10-26 13:54:26 +00:00
parent 93d4863cfc
commit 811db3f1ca
2 changed files with 69 additions and 52 deletions

View file

@ -305,8 +305,9 @@
<div class="fieldset">
<span class="fieldset-legend">Image</span>
<ImagePicker url={draft.imageUrl} withUrl={false} altHint="" bind:uploading onChange={(image) => (draft = { ...draft, image: image.id ?? draft.image, imageUrl: image.url })} />
<span class="label whitespace-normal">The shop uses the name as the image’s alt text.</span>
<ImagePicker url={draft.imageUrl} withUrl={false} altHint="" bind:uploading onChange={(image) => (draft = { ...draft, image: image.id ?? draft.image, imageUrl: image.url })}>
<p>The shop uses the name as the image’s alt text.</p>
</ImagePicker>
</div>
<label class="label mt-2 cursor-pointer gap-3 text-base-content">