Make WordPress Core

Ticket #54188: 54188.diff

File 54188.diff, 1.1 KB (added by karpstrucking, 20 months ago)
  • wp-admin/css/themes.css

    diff --git a/wp-admin/css/themes.css b/wp-admin/css/themes.css
    index 04bfdd00f7..daafca6be4 100644
    a b body.full-overlay-active { 
    18451845
    18461846.install-theme-info .theme-screenshot {
    18471847        margin: 15px 0;
    1848         width: 258px;
    18491848        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%;
    18501865}
    18511866
    18521867.install-theme-info .theme-details {
  • wp-admin/theme-install.php

    diff --git a/wp-admin/theme-install.php b/wp-admin/theme-install.php
    index 4f0ba2ad66..997624a715 100644
    a b if ( $tab ) { 
    454454                                                ?>
    455455                                        </span>
    456456
    457                                         <img class="theme-screenshot" src="{{ data.screenshot_url }}" alt="" />
     457                                        <div class="theme-screenshot">
     458                                                <img src="{{ data.screenshot_url }}" alt="" />
     459                                        </div>
    458460
    459461                                        <div class="theme-details">
    460462                                                <# if ( data.rating ) { #>