Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#49254 closed defect (bug) (fixed)

Twenty Twenty: Author Bio/Post Meta Width in Cover Template in Mobile

Reported by: JarretC Owned by: ianbelanger
Priority: normal Milestone: 5.4
Component: Bundled Theme Version: 5.3
Severity: normal Keywords:
Cc: Focuses: css

Description

Currently when the cover template is assigned to a post and the author bio is shown along with the post meta the width of the elements span across the entire browser width in smaller browser widths:

https://i.snipboard.io/bHPx8A.jpg

The .post-inner DIV the elements are confined within on the Cover Template spans across the entire width of the browser whereas in the Default/Full Width templates the .section-inner element has width: calc( 100% - 4rem ); set

Attachments (2)

49254.patch​ (504 bytes ) - added by JarretC 7 years ago.
Sets proper width on mobile cover template for author/post meta elements
49254.1.diff​ (1.3 KB ) - added by ianbelanger 7 years ago.
Update the patch to include RTL styles

Download all attachments as: .zip

Change History (7)

@JarretC
7 years ago

Sets proper width on mobile cover template for author/post meta elements

#1 @JarretC
7 years ago

Proper alignment after patch implementation

https://i.snipboard.io/BRS5tF.jpg

@ianbelanger
7 years ago

Update the patch to include RTL styles

#2 @ianbelanger
7 years ago

  • Focuses css added
  • Keywords commit added
  • Milestone Awaiting Review → 5.4
  • Version → 5.3

Thanks for the patch @JarretC. While your solution does fix the issue, your patch did not include the RTL styles. After any changes are made to any CSS file, npm run build needs to be run in order to regenerate the RTL stylesheet. My new patch does that and it also includes another RTL change that was missed in a previous patch.

Last edited 7 years ago by ianbelanger (previous) (diff)

#3 @ianbelanger
7 years ago

  • Owner set to ianbelanger
  • Resolution → fixed
  • Status new → closed

In 47241:

Bundled Themes: Twenty Twenty Author Bio/Post Meta Width in Cover Template in Mobile.

Fixes a bug where the author bio and post meta have no left or right padding in smaller viewports.

Props JarretC.
Fixes #49254.

#4 @ianbelanger
7 years ago

  • Keywords fixed-major added; has-patch commit removed
  • Milestone 5.4 → 5.3.3
  • Resolution fixed
  • Status closed → reopened

Reopening for backport.

#5 @audrasjb
7 years ago

  • Keywords fixed-major removed
  • Milestone 5.3.3 → 5.4
  • Resolution → fixed
  • Status reopened → closed

Moving 5.3.3 Bundled Themes tickets back to milestone 5.4 as RC1 is approaching.

Note: See TracTickets for help on using tickets.