Repository navigation
Conversation
Since dd9316b a link around an image is displayed inline-block (a:has(img)). In a card the link around the image therefore shrinks to the width of the image, so width: 100% of the image no longer refers to the card and tile images from the IRSS are shown smaller than the card. The responsive image then also measures this smaller width and loads a smaller source. The link in the image container of a card is displayed as block again.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since dd9316b ("[FEATURE] UI: add
Listing\InlineandListing\Entity\Gridcomponents", #11444) a link around an image is displayed inline-block:In a card, the link in
.il-card-image-containertherefore shrinks to the width of the image..il-card img.img-responsive { width: 100% }then refers to this link instead of the card, so tile images (IRSS flavours) are shown smaller than the card. SVG default tile images are not affected because they scale. In addition,loadHighResolutionSource()measures the width of the (too small) image and therefore loads a smaller source than needed.Measured on a local 12 installation (category in tile view, window width 1280px): card 277px, tile image 240px. With this change the image is 277px wide and the 480px source is loaded; also checked at 800px and 1600px and in Safari.
This sets the link in the image container of a card to
display: block. The global rule stays untouched.delos.csswas compiled with sass 1.94.2; the only other difference of a full compile (one colour notation from an earlier compile with another sass version) is not part of this PR.trunk has the same code and needs the same change.