Skip to content

Commit

Permalink
fix: small bugs with GitHub repo cards (fix saicaca#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
saicaca committed Dec 7, 2024
1 parent 8cd04d9 commit e446283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/rehype-component-github-card.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function GithubCardComponent(properties, children) {
if (data.license?.spdx_id) {
document.getElementById('${cardUuid}-license').innerText = data.license?.spdx_id
} else {
document.getElementById('${cardUuid}-license').classList.add = "no-license"
document.getElementById('${cardUuid}-license').innerText = "no-license"
};
document.getElementById('${cardUuid}-card').classList.remove("fetch-waiting");
console.log("[GITHUB-CARD] Loaded card for ${repo} | ${cardUuid}.")
Expand Down
2 changes: 1 addition & 1 deletion src/styles/markdown-extend.styl
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ a.card-github.fetch-error
100%
opacity: 0.15

.card-github, .gc-description, .gc-titlebar, .gc-stars, .gc-forks, .gc-license, .gc-avatar, github-logo
.card-github, .gc-description, .gc-titlebar, .gc-stars, .gc-forks, .gc-license, .gc-avatar, .github-logo
transition-property: all
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
transition-duration: 0.15s

0 comments on commit e446283

Please sign in to comment.