diff --git a/wp-admin/css/themes.css b/wp-admin/css/themes.css
index 04bfdd00f7..daafca6be4 100644
a
|
b
|
body.full-overlay-active { |
1845 | 1845 | |
1846 | 1846 | .install-theme-info .theme-screenshot { |
1847 | 1847 | margin: 15px 0; |
1848 | | width: 258px; |
1849 | 1848 | border: 1px solid #c3c4c7; |
| 1849 | position: relative; |
| 1850 | overflow: hidden; |
| 1851 | } |
| 1852 | |
| 1853 | .install-theme-info .theme-screenshot > img { |
| 1854 | width: 100%; |
| 1855 | height: auto; |
| 1856 | position: absolute; |
| 1857 | left: 0; |
| 1858 | top: 0; |
| 1859 | } |
| 1860 | |
| 1861 | .install-theme-info .theme-screenshot:after { |
| 1862 | content: ""; |
| 1863 | display: block; |
| 1864 | padding-top: 66.66666666%; |
1850 | 1865 | } |
1851 | 1866 | |
1852 | 1867 | .install-theme-info .theme-details { |
diff --git a/wp-admin/theme-install.php b/wp-admin/theme-install.php
index 4f0ba2ad66..997624a715 100644
a
|
b
|
if ( $tab ) { |
454 | 454 | ?> |
455 | 455 | </span> |
456 | 456 | |
457 | | <img class="theme-screenshot" src="{{ data.screenshot_url }}" alt="" /> |
| 457 | <div class="theme-screenshot"> |
| 458 | <img src="{{ data.screenshot_url }}" alt="" /> |
| 459 | </div> |
458 | 460 | |
459 | 461 | <div class="theme-details"> |
460 | 462 | <# if ( data.rating ) { #> |