Limit container height for landscape popup's extract

This is the only way we can properly truncate text.
We can't do it on the basis of characters as it'll
take up different amount of space based on the script.

Change-Id: I77f8304315beb42eb2120c633d3befb5f83432f9
This commit is contained in:
Prateek Saxena 2014-02-18 12:30:50 +05:30
parent 2899d34a70
commit 54b409cee2
2 changed files with 9 additions and 2 deletions

View file

@ -45,7 +45,7 @@
var $a,
page = re.query.pages[re.query.pageids[0]],
$contentbox = $( '<div>' ).html( page.extract ),
$contentbox = $( '<div>' ).addClass( 'mwe-popups-extract' ).html( page.extract ),
thumbnail = page.thumbnail,
tall = thumbnail && thumbnail.height > thumbnail.width,
$thumbnail = createThumbnail( thumbnail, tall ),

View file

@ -69,8 +69,15 @@
}
}
&.mwe-popups-is-tall{
&.mwe-popups-is-tall {
width: 450px;
.mwe-popups-extract {
float: left;
width: 215px;
height: 125px;
overflow: hidden;
}
}
&.mwe-popups-is-not-tall{