diff --git a/static/js/infoView.p_for_power.js b/static/js/infoView.p_for_power.js index 1394c20..c9fc55a 100644 --- a/static/js/infoView.p_for_power.js +++ b/static/js/infoView.p_for_power.js @@ -290,6 +290,17 @@ pandora.ui.infoView = function(data, isMixed) { .appendTo($text); } + if (data.type?.join('').includes('ai:')) { + $('
').addClass('ai-preview').appendTo($text); + } + if (data.type?.includes('source')) { + + $('').attr({ + href: 'https://power-video.rmozone.com/#ox/' + data.id, + target: '_blank' + }).html('Open in AI Power Video').appendTo($text); + } + if (canEdit || data.prompt) { $('
') .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:')) { - $('
').addClass('ai-preview').appendTo($text); - } - if (data.type?.includes('source')) { - - $('').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) {