diff --git a/src/wp-admin/css/themes.css b/src/wp-admin/css/themes.css
index aedecd5b32..ce9ca3ddd3 100644
a
|
b
|
body.full-overlay-active { |
1850 | 1850 | |
1851 | 1851 | .install-theme-info .theme-screenshot { |
1852 | 1852 | margin: 15px 0; |
1853 | | width: 258px; |
1854 | 1853 | border: 1px solid #c3c4c7; |
| 1854 | position: relative; |
| 1855 | overflow: hidden; |
| 1856 | } |
| 1857 | |
| 1858 | .install-theme-info .theme-screenshot > img { |
| 1859 | width: 100%; |
| 1860 | height: auto; |
| 1861 | position: absolute; |
| 1862 | left: 0; |
| 1863 | top: 0; |
| 1864 | } |
| 1865 | |
| 1866 | .install-theme-info .theme-screenshot:after { |
| 1867 | content: ""; |
| 1868 | display: block; |
| 1869 | padding-top: 66.66666666%; |
1855 | 1870 | } |
1856 | 1871 | |
1857 | 1872 | .install-theme-info .theme-details { |
diff --git a/src/wp-admin/theme-install.php b/src/wp-admin/theme-install.php
index 10aeeb344f..336ed65445 100644
a
|
b
|
if ( $tab ) { |
456 | 456 | ?> |
457 | 457 | </span> |
458 | 458 | |
459 | | <img class="theme-screenshot" src="{{ data.screenshot_url }}?ver={{ data.version }}" alt="" /> |
| 459 | <div class="theme-screenshot"> |
| 460 | <img src="{{ data.screenshot_url }}" alt="" /> |
| 461 | </div> |
460 | 462 | |
461 | 463 | <div class="theme-details"> |
462 | 464 | <# if ( data.rating ) { #> |