Article View
- remeasure see-more when images got loaded, see #950 - add top-margin to attachments
This commit is contained in:
parent
a08e33f0dc
commit
cf0c8e0a6a
2 changed files with 9 additions and 1 deletions
|
@ -73,6 +73,7 @@ class ArticleViewItem extends App.ObserverController
|
|||
|
||||
elements:
|
||||
'.textBubble-content': 'textBubbleContent'
|
||||
'.textBubble-content img': 'textBubbleImages'
|
||||
'.textBubble-overflowContainer': 'textBubbleOverflowContainer'
|
||||
|
||||
events:
|
||||
|
@ -209,6 +210,13 @@ class ArticleViewItem extends App.ObserverController
|
|||
return if @shown
|
||||
@shown = true
|
||||
|
||||
@textBubbleImages.each (i, el) =>
|
||||
if !el.complete
|
||||
$(el).one 'load', @measureSeeMore
|
||||
|
||||
@measureSeeMore()
|
||||
|
||||
measureSeeMore: =>
|
||||
maxHeight = 560
|
||||
minHeight = 90
|
||||
bubbleContent = @textBubbleContent
|
||||
|
|
|
@ -4763,7 +4763,7 @@ footer {
|
|||
.attachments.attachments--list:not(:empty) {
|
||||
border-top: 1px solid rgba(0,0,0,.04);
|
||||
white-space: normal;
|
||||
margin: 0 -20px;
|
||||
margin: 10px -20px 0;
|
||||
padding: 26px 20px 7px 72px;
|
||||
position: relative;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue