Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Adjust date formats in query patterns #146

Merged
merged 2 commits into from
Oct 25, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inc/patterns/query-image-grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<!-- wp:group {"layout":{"type":"flex","justifyContent":"space-between"}} -->
<div class="wp-block-group"><!-- wp:post-title {"isLink":true,"style":{"typography":{"fontFamily":"var:preset|font-family|system-font","fontStyle":"normal","fontWeight":"400"}},"fontSize":"small"} /-->

<!-- wp:post-date {"format":"F j, Y","style":{"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div>
<!-- wp:post-date {"format":"m.d.y","style":{"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div>
Copy link
Collaborator

@jffng jffng Oct 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When there are no featured images, this one looks a little off. But okay to address that in a follow-up.

Default alignment:
Screen Shot 2021-10-21 at 5 10 14 PM

Wide alignment:
Screen Shot 2021-10-21 at 5 11 49 PM

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh yes, this is an issue the grid view for the query block in general. In any case, this is a non-default layout, and it's called "Image grid posts" so maybe folks won't choose it if it looks bad? 😅

<!-- /wp:group -->
<!-- /wp:post-template -->

Expand Down
4 changes: 2 additions & 2 deletions inc/patterns/query-large-titles.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
'content' => '<!-- wp:query {"query":{"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"perPage":8},"align":"wide"} -->
<div class="wp-block-query alignwide"><!-- wp:post-template -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"verticalAlignment":"top","width":"160px"} -->
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:160px"><!-- wp:post-date {"fontSize":"small"} /--></div>
<div class="wp-block-columns"><!-- wp:column {"verticalAlignment":"top","width":"4em"} -->
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:4em"><!-- wp:post-date {"format":"M j","fontSize":"small"} /--></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"center","width":""} -->
Expand Down