Making WordPress.org


Ignore:
Timestamp:
12/08/2022 07:37:52 PM (2 years ago)
Author:
Otto42
Message:

Plugin banners: reduce dpi requirement to 120, to use high dpi images on more devices. props @joostdevalk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php

    r12084 r12309  
    588588                $html .= "#{$id} { background-image: url('{$banner}'); }";
    589589                if ( ! empty( $banner_2x ) ) {
    590                     $html .= "@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) { #{$id} { background-image: url('{$banner_2x}'); } }";
     590                    $html .= "@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 120dpi) { #{$id} { background-image: url('{$banner_2x}'); } }";
    591591                }
    592592                $html .= '</style>';
Note: See TracChangeset for help on using the changeset viewer.