Make WordPress Core

Changeset 56207


Ignore:
Timestamp:
07/11/2023 07:22:17 AM (17 months ago)
Author:
isabel_brison
Message:

Bundled Theme: fix height of featured images in Twenty Twenty Three.

Fixes max height of the featured images in the Archive, Home, Index, and Search templates to prevent expanding iframe bug.

Props mikachan, ramonopoly.
Fixes #58766.

Location:
trunk/src/wp-content/themes/twentytwentythree/templates
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentythree/templates/archive.html

    r54467 r56207  
    88    <div class="wp-block-query alignwide">
    99        <!-- wp:post-template {"align":"wide"} -->
    10             <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"max(15vw, 30vh)","align":"wide"} /-->
     10            <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"clamp(15vw, 30vh, 400px)","align":"wide"} /-->
    1111            <!-- wp:post-title {"isLink":true} /-->
    1212            <!-- wp:post-excerpt /-->
  • trunk/src/wp-content/themes/twentytwentythree/templates/home.html

    r54629 r56207  
    1010    <div class="wp-block-query alignwide">
    1111        <!-- wp:post-template {"align":"wide"} -->
    12             <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"max(15vw, 30vh)","align":"wide"} /-->
     12            <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"clamp(15vw, 30vh, 400px)","align":"wide"} /-->
    1313            <!-- wp:post-title {"isLink":true} /-->
    1414            <!-- wp:post-excerpt /-->
  • trunk/src/wp-content/themes/twentytwentythree/templates/index.html

    r54312 r56207  
    66    <div class="wp-block-query alignwide">
    77        <!-- wp:post-template {"align":"wide"} -->
    8             <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"max(15vw, 30vh)","align":"wide"} /-->
     8            <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"clamp(15vw, 30vh, 400px)","align":"wide"} /-->
    99            <!-- wp:post-title {"isLink":true,"align":"wide"} /-->
    1010            <!-- wp:post-excerpt /-->
  • trunk/src/wp-content/themes/twentytwentythree/templates/search.html

    r54467 r56207  
    88    <div class="wp-block-query alignwide">
    99        <!-- wp:post-template {"align":"wide"} -->
    10             <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"max(15vw, 30vh)","align":"wide"} /-->
     10            <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"clamp(15vw, 30vh, 400px)","align":"wide"} /-->
    1111            <!-- wp:post-title {"isLink":true} /-->
    1212            <!-- wp:post-excerpt /-->
Note: See TracChangeset for help on using the changeset viewer.