Restore pre-text and post-text with Use as input and Details.

Library items already stored those fields, but Details showed one blob and Use as input left the form's empty pre/post in place.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-02 14:51:35 -05:00
co-authored by Cursor
parent c20229da0e
commit c4e18eeb2c
6 changed files with 58 additions and 37 deletions
+3 -2
View File
@@ -368,6 +368,7 @@ import {
type LibraryStill
} from '~/utils/libraryBrowse'
import { isXaigenStudio } from '~/utils/videoModels'
import { formatPromptParts } from '~/utils/promptParts'
const CARD_MIN = 156
const GAP = 10
@@ -507,10 +508,10 @@ const focusedNavIndex = computed(() => {
const detailPrompt = computed(() => {
if (focused.value?.kind === 'clip' && focused.value.group) {
const item = focused.value.group.parts.find(part => part.id === focusedPartId.value) || focused.value.group.head
return item.prompt || ''
return formatPromptParts(item)
}
const still = focused.value?.stillGroup?.parts.find(part => part.id === focusedPartId.value) || focused.value?.stillGroup?.head
return still?.prompt || ''
return formatPromptParts(still)
})
const detailMeta = computed(() => {
const entry = focused.value