diff --git a/_includes/components/widgets/github-repos.njk b/_includes/components/widgets/github-repos.njk index 7f23058..5e53e95 100644 --- a/_includes/components/widgets/github-repos.njk +++ b/_includes/components/widgets/github-repos.njk @@ -12,140 +12,141 @@ - {# Loading state #} -
- Loading... -
+ {# Tab content — fixed height container to prevent layout shift #} +
- {# Commits Tab #} -
- -
No recent commits.
-
+ {# Loading state #} +
+ Loading... +
- {# Repos Tab #} -
- -
No repositories found.
-
+ {# Commits Tab #} +
+ +
No recent commits.
+
- {# Featured Tab #} -
- -
No featured projects.
-
+ {# Repos Tab #} +
+ +
No repositories found.
+
+ + {# Featured Tab #} +
+ +
No featured projects.
+
+ + {# PRs Tab #} +
+ +
No recent PRs or issues.
+
- {# PRs Tab #} -
- -
No recent PRs or issues.
{# Footer link #} @@ -176,7 +177,7 @@ function githubWidget(username) { ]; if (username) { fetches.push( - fetch(`https://api.github.com/users/${username}/repos?sort=updated&per_page=10&type=owner`, { + fetch('https://api.github.com/users/' + username + '/repos?sort=updated&per_page=10&type=owner', { headers: { 'Accept': 'application/vnd.github.v3+json' } }).then(r => r.ok ? r.json() : null).catch(() => null) );