Merge "Fix storybook stories"

This commit is contained in:
jenkins-bot 2023-07-03 14:00:05 +00:00 committed by Gerrit Code Review
commit efd0a0c91e

View file

@ -31,6 +31,9 @@ function createPopup( model, layoutHint ) {
if ( model.thumbnail ) {
model.thumbnail = scaleDownThumbnail( model.thumbnail );
}
const extractNode = document.createElement( 'div' );
extractNode.innerHTML = model.extract;
model.extract = extractNode.childNodes;
const preview = createPreviewWithType( model );
const WINDOW_WIDTH = preview.isTall ? 500 : 500;
@ -112,7 +115,7 @@ function createPopup( model, layoutHint ) {
pointerSize,
WINDOW_HEIGHT
);
wrapper.appendChild( preview.el[ 0 ] );
wrapper.appendChild( preview.el );
return wrapper.outerHTML;
}