[wp-trac] [WordPress Trac] #56097: Theme preview is bugged for all themes in the directory

WordPress Trac noreply at wordpress.org
Thu Jun 30 00:33:15 UTC 2022


#56097: Theme preview is bugged for all themes in the directory
--------------------------------+-----------------------------
 Reporter:  superbthemescom     |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Themes              |    Version:
 Severity:  normal              |   Keywords:
  Focuses:  ui, administration  |
--------------------------------+-----------------------------
 Originally reported in #meta6376.

 Hi!
 The preview is aligned right, and 20% of the content is missing in the
 view on all themes in the Wp.org directory.

 Here's how you reproduce it:
 1. On a website with WordPress installed, go to the themes tab and click
 "Add new": /wp-admin/theme-install.php?browse=popular
 2. Pick any theme and click "Preview".

 This bug doesn't occur on wp.org when clicking the preview button, only on
 websites with WordPress installed.

 Can't figure how to upload images, but the bug is easy to replicate
 anyways.

 The bug is caused by following CSS:

 {{{
 #customize-container iframe, .theme-install-overlay iframe {
     width: 100vw;
 }

 }}}

 Changing it to follow, fixes it:

 {{{
 #customize-container iframe, .theme-install-overlay iframe {
     width: 100%;
 }

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56097>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list