fix actionbar pre-expand-blog

This commit is contained in:
zhaospei 2023-02-04 20:14:50 +07:00
parent d59828df1c
commit 8c135a5396

View file

@ -9,16 +9,19 @@
width: 98%;
margin-left: 0;
}
.middle-right-content {
margin-left: 13%;
display: inline-flex;
}
}
@media(max-width: 799px) {
#content {
width: 100%;
margin-left: 0;
}
.middle-right-content {
display: block;
}
@ -36,12 +39,14 @@
$description.css('max-height', 'fit-content');
$(this).css('cursor', 'auto');
$(this).removeClass('pre-expand-blog');
$(this).find('.actionbar').show();
}
})
$('.blog-box').each(function () {
if ($(this).prop('scrollHeight') > $(this).height()) {
$(this).addClass('pre-expand-blog');
$(this).css('cursor', 'pointer');
$(this).find('.actionbar').hide();
}
});
}