mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 15:16:50 +00:00
Merge "Fix storybook stories"
This commit is contained in:
commit
efd0a0c91e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue