[wp-trac] [WordPress Trac] #61126: Twenty Nineteen : Read More block width issue

WordPress Trac noreply at wordpress.org
Mon May 6 06:09:16 UTC 2024


#61126: Twenty Nineteen : Read More block width issue
-----------------------------+------------------------------
 Reporter:  pitamdey         |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Bundled Theme    |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-screenshots  |     Focuses:  ui
-----------------------------+------------------------------

Comment (by poena):

 Hi @pitamdey
 Thank you for reporting and working on this issue.
 Is there a way to solve it without using {{{important}}}?

 ----
 Ideally [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-
 content/themes/twentynineteen/style-editor.scss#L78 the theme should not
 be setting the max width and width like this], then we would not need to
 override it for this block, but maybe it was needed for older versions of
 WordPress.

 ----

 @isabel_brison
 There is a visible difference between the padding on this block in 6.5 and
 trunk, so at first, I was confused about why my test showed a different
 result than the screenshots that were added to this ticket.
 In both tests, the block has a background color added.

 I am not sure that this spacing change is intentional.
 This should be explored further. I do not see any changes to the padding
 in the block's history:
 https://github.com/WordPress/gutenberg/commits/trunk/packages/block-
 library/src/read-more

 6.5:
 {{{
 element.style {
     white-space: pre-wrap;
     min-width: 1px;
     background-color: rgb(0, 115, 168);
     padding-top: var(--wp--preset--spacing--40);
     padding-right: var(--wp--preset--spacing--40);
     padding-bottom: var(--wp--preset--spacing--40);
     padding-left: var(--wp--preset--spacing--40);
 }
 }}}

 Trunk:
 {{{
 element.style {
     white-space: pre-wrap;
     min-width: 1px;
     background-color: rgb(0, 115, 168);
 }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61126#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list