hide alcim if not enough space

This commit is contained in:
infeeeee
2019-10-04 15:43:25 +02:00
parent c74d515a8a
commit 86bc0e72b7

View File

@@ -911,7 +911,7 @@
//hide metadata
cMetadata.children(".categories, .postedon").hide().removeClass("transparent")
cBevezetoWrapper.show()
cAlcimWrapper.css({ display: 'flex' })
cAlcimWrapper.css({ display: 'flex' }).addClass("transparent")
//set height for ellipsis
if (!cc.attr('data-metadataBevezetoHeight')) {
@@ -928,7 +928,12 @@
}
//show bev+alcim
cMetadata.children(".bevezetoWrapper, .alcimWrapper").removeClass("transparent")
cBevezetoWrapper.removeClass("transparent")
//only show alcim, if enough space
if (!(cAlcim.children('.alcimInner').height() > cAlcim.height())) {
cAlcimWrapper.removeClass("transparent")
}
//clamp bevezető
let ellipsis = new Ellipsis(cBevezeto[0]);