Skip to content

Commit 5937d2b

Browse files
committed
参考 4.0.8 修复 githubcard 问题
1 parent a191b40 commit 5937d2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/pure/components/advanced/GithubCard.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const [owner, repoName] = repo.split('/')
8484
.loading .gh-text {
8585
color: transparent;
8686
border-radius: calc(var(--radius) - 3px);
87-
background-color: hsl(var(--primary-foreground) / var(--un-text-opacity));
87+
background-color: hsl(var(--primary-foreground) / var(--un-bg-opacity, 1));
8888
animation: pulsate 2s infinite linear;
8989
user-select: none;
9090
}
@@ -157,7 +157,6 @@ const [owner, repoName] = repo.split('/')
157157
const avatarEl = this.querySelector('#gh-avatar') as HTMLElement
158158
if (avatarEl) {
159159
avatarEl.style.backgroundImage = `url(${data.owner.avatar_url})`
160-
avatarEl.style.backgroundColor = 'transparent'
161160
}
162161

163162
this.classList.remove('loading')

0 commit comments

Comments
 (0)