mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-27 17:00:37 +00:00
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:
parent
2899d34a70
commit
54b409cee2
|
@ -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 ),
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue