Skip to content

Commit e13ee92

Browse files
committed
Update Latest-Posts-Hover.php
1 parent 57e8a69 commit e13ee92

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

widgets/Latest-Posts-Hover.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ protected function render()
420420
$wordMobile = $settings['content_word_mobile'];
421421
$flex = 100 / count($posts);
422422

423-
if ($settings['posts_per_page'] > 4) {
423+
if ( count($posts) > 4) {
424424
$flex = 25;
425425
}
426426
$widht = $flex - 1;
@@ -616,18 +616,21 @@ protected function render()
616616
}
617617
.category {
618618
margin-top: 0px;
619-
margin-bottom: 0;
619+
margin-bottom: 0px;
620620
padding: 0 5px;
621621
font-size: 18px;
622622
color:black;
623623
display:none;
624624
}
625625
626626
.description {
627-
margin: 0;
627+
margin-top: 0px;
628+
margin-bottom: 0;
628629
padding: 0 15px;
629630
font-size: 19px;
630631
color: black;
632+
display:block;
633+
overflow-wrap: break-word;
631634
}
632635
633636
.card2:hover .description {

0 commit comments

Comments
 (0)