Skip to content

Commit 2d0d187

Browse files
xkcodingclaude
andcommitted
fix: 为 CC 协议徽章添加 width/height 属性
避免页面加载时的布局偏移 (CLS) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 95f8a9f commit 2d0d187

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/License.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ const fullUrl = `${SITE.website.replace(/\/$/, "")}${postUrl}`;
3333
src="https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png"
3434
alt={licenseType}
3535
class="h-8"
36+
width="88"
37+
height="31"
3638
loading="lazy"
3739
/>
3840
</a>

0 commit comments

Comments
 (0)