Image editor: hide raw Prompt, use Resolution

Remove backend-assembled raw Prompt and copy action from image info; render a lightweight generationInputs snapshot (user panel inputs + reference thumbnails) stored on canvas layers and shown in the image info dialog. Unify canvas display and info to use originalWidth/originalHeight (Resolution) instead of saved Size and hydrate legacy layout width/height only as fallback. Add model/aspectRatio/imageSize options for character/icon generation (frontend state, tests, and client payloads). Increase Axum JSON body limit for character animation endpoint to 12MB for compatibility and prefer submitting persisted objectKey over large Data URLs. Update tests, docs, and related server/frontend code to reflect these behaviors and validations.
This commit is contained in:
2026-06-16 17:06:21 +08:00
parent 7eeff10c67
commit 3a3cc89280
14 changed files with 1041 additions and 135 deletions

View File

@@ -5205,18 +5205,53 @@ html[data-mobile-keyboard-open='true'] .platform-mobile-bottom-dock {
font-weight: 760;
}
.image-canvas-editor__metadata-prompt {
.image-canvas-editor__metadata-inputs {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.42rem;
}
.image-canvas-editor__metadata-copy {
cursor: pointer;
border: 1px solid rgba(148, 163, 184, 0.28);
background: #ffffff;
color: #334155;
.image-canvas-editor__metadata-input-field {
display: grid;
gap: 0.16rem;
}
.image-canvas-editor__metadata-input-title {
color: #64748b;
font-size: 0.7rem;
font-weight: 820;
}
.image-canvas-editor__metadata-reference-list {
display: grid;
width: 100%;
gap: 0.42rem;
}
.image-canvas-editor__metadata-reference-card {
display: grid;
grid-template-columns: 2.4rem minmax(0, 1fr);
align-items: center;
gap: 0.5rem;
width: 100%;
border: 1px solid rgba(148, 163, 184, 0.26);
border-radius: 0.65rem;
background: rgba(248, 250, 252, 0.92);
padding: 0.38rem;
}
.image-canvas-editor__metadata-reference-card img {
width: 2.4rem;
height: 2.4rem;
border-radius: 0.48rem;
object-fit: cover;
}
.image-canvas-editor__metadata-reference-copy {
display: grid;
min-width: 0;
gap: 0.12rem;
}
@media (max-width: 760px) {