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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user