Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update responsive layout
Browse files Browse the repository at this point in the history
adamwoodnz committed Oct 25, 2023
1 parent 648f338 commit 3629c42
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions mu-plugins/blocks/latest-news/latest-news.php
Original file line number Diff line number Diff line change
@@ -38,8 +38,8 @@ function render_block( $attributes ) {
$blog_switched = true;
}

$cache_key = 'wporg-latest-news-' . $attributes['perPage'];
$posts = get_transient( $cache_key );
// $cache_key = 'wporg-latest-news-' . $attributes['perPage'];
// $posts = get_transient( $cache_key );
if ( ! $posts ) {
$posts = wp_get_recent_posts(
array(
10 changes: 5 additions & 5 deletions mu-plugins/blocks/latest-news/postcss/style.pcss
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@
border-bottom-right-radius: 2px;
}

@media screen and (max-width: 599px) {
@media screen and (max-width: 767px) {
flex-direction: column;
gap: var(--wp--preset--spacing--10);
}
@@ -68,10 +68,6 @@
text-decoration: none !important;
}

&:focus-visible {
border-color: transparent;
}

& > a {
flex-basis: calc(100% - var(--local-details-column-width));
}
@@ -85,6 +81,10 @@
& > span {
display: none;
}

& time {
white-space: nowrap;
}
}
}
}

0 comments on commit 3629c42

Please sign in to comment.