feat(HAI-032): add image paste support to inline create card

- Add paste handler to extract and preview images from clipboard
- Track pending images with object URL previews and cleanup on unmount
- Upload pasted images as attachments on task creation
- Add styled image preview strip with remove button
- Add CSS for preview thumbnails with hover-to-delete overlay
This commit is contained in:
Dustin Byrne
2026-03-25 22:43:24 -04:00
parent 67c3caf239
commit 5ccbefaa1d
2 changed files with 135 additions and 1 deletions

View File

@@ -816,6 +816,51 @@ html, body {
margin-left: auto;
}
.inline-create-previews {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.inline-create-preview {
position: relative;
width: 48px;
height: 48px;
border: 1px solid var(--border, #333);
border-radius: 6px;
overflow: hidden;
background: var(--bg-secondary, #1a1a2e);
flex-shrink: 0;
}
.inline-create-preview img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.inline-create-preview-remove {
position: absolute;
top: 1px;
right: 1px;
background: rgba(0, 0, 0, 0.6);
color: #fff;
border: none;
border-radius: 50%;
width: 18px;
height: 18px;
cursor: pointer;
font-size: 12px;
line-height: 18px;
text-align: center;
padding: 0;
}
.inline-create-preview-remove:hover {
background: rgba(200, 0, 0, 0.8);
}
.dep-trigger-wrap {
position: relative;
}