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