feat(preview-comment): put x-ray at top if there are more than 7 changed icons to prevent them from being cut of (#3589)

This commit is contained in:
Jakob Guddas
2025-08-29 09:48:45 +02:00
committed by GitHub
parent d52c369b99
commit 341be34b1f

View File

@@ -134,7 +134,15 @@ const readyToUseCode = changedFiles
const commentMarkup = `\
### Added or changed icons
${changeFiles2pxStrokeImageTags}
${
changedFiles.length >= 8
? `<details>
<summary>Icon X-rays</summary>
${changeFilesXRayImageTags}
</details>
`
: ''
}${changeFiles2pxStrokeImageTags}
<details>
<summary>Preview cohesion</summary>
${cohesionSquaresImageTags}<br/>
@@ -157,11 +165,15 @@ ${changeFilesLowDPIImageTags24}
${changeFilesLowDPIImageTags32}
<h4>48px (default + retina)</h4>
${changeFilesLowDPIImageTags48}
</details>
</details>${
changedFiles.length < 8
? `
<details>
<summary>Icon X-rays</summary>
${changeFilesXRayImageTags}
</details>
</details>`
: ''
}
<details>
<summary>Icon Diffs</summary>
${changeFilesDiffImageTags}