fix mobile view project overview

This commit is contained in:
Jonas Heinrich 2020-06-18 16:06:34 +02:00
parent 77c2cdffe8
commit c36d84a8a3
2 changed files with 4 additions and 2 deletions

View file

@ -350,6 +350,8 @@ add_action( 'wp_head', 'kit_customize_css');
function kit_modify_posts_per_page( $query ) {
if ( $query->is_search() ) {
$query->set( 'posts_per_page', '10' );
} else {
$query->set( 'posts_per_page', '9' );
}
}
add_action( 'pre_get_posts', 'kit_modify_posts_per_page' );

View file

@ -626,7 +626,7 @@ section .content-wrap > * + * {
flex-wrap: wrap;
}
.container-3-cols .column {
width: calc(50% - 0.83333rem);
width: calc(45% - 0.83333rem);
}
.container-3-cols .column + .column {
margin-left: 1.66667rem;
@ -698,7 +698,7 @@ section .content-wrap > * + * {
}
}
@media (max-width: 420px) {
@media (max-width: 520px) {
.container-3-cols {
flex-wrap: wrap;
}