format prompt
This commit is contained in:
parent
6691595eaf
commit
ba1a288636
1 changed files with 13 additions and 12 deletions
|
|
@ -290,6 +290,17 @@ pandora.ui.infoView = function(data, isMixed) {
|
|||
.appendTo($text);
|
||||
}
|
||||
|
||||
if (data.type?.join('').includes('ai:')) {
|
||||
$('<div>').addClass('ai-preview').appendTo($text);
|
||||
}
|
||||
if (data.type?.includes('source')) {
|
||||
|
||||
$('<a>').attr({
|
||||
href: 'https://power-video.rmozone.com/#ox/' + data.id,
|
||||
target: '_blank'
|
||||
}).html('Open in AI Power Video').appendTo($text);
|
||||
}
|
||||
|
||||
if (canEdit || data.prompt) {
|
||||
$('<div>')
|
||||
.append(
|
||||
|
|
@ -311,7 +322,8 @@ pandora.ui.infoView = function(data, isMixed) {
|
|||
.css(css)
|
||||
.css({
|
||||
marginTop: '12px',
|
||||
overflow: 'hidden'
|
||||
overflow: 'hidden',
|
||||
'white-space': 'pre-line'
|
||||
})
|
||||
.bindEvent({
|
||||
submit: function(event) {
|
||||
|
|
@ -322,17 +334,6 @@ pandora.ui.infoView = function(data, isMixed) {
|
|||
.appendTo($text);
|
||||
}
|
||||
|
||||
if (data.type?.join('').includes('ai:')) {
|
||||
$('<div>').addClass('ai-preview').appendTo($text);
|
||||
}
|
||||
if (data.type?.includes('source')) {
|
||||
|
||||
$('<a>').attr({
|
||||
href: 'https://power-video.rmozone.com/#ox/' + data.id,
|
||||
target: '_blank'
|
||||
}).html('Open in AI Power Video').appendTo($text);
|
||||
}
|
||||
|
||||
|
||||
// Duration, Aspect Ratio --------------------------------------------------
|
||||
if (!isMultiple) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue