Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Update GitHubStarButton component styles for improved loading indicator and star count display consistency.

Bill Yang474cb7ababf7
diff --git a/docs/src/components/GitHubStarButton.jsx b/docs/src/components/GitHubStarButton.jsx
index 2ca7b10e1..afee354b1 100644
--- a/docs/src/components/GitHubStarButton.jsx
+++ b/docs/src/components/GitHubStarButton.jsx
@@ -48,9 +48,9 @@ export function GitHubStarButton() {
<div className="flex items-center gap-1 ml-1 mr-0.5 py-0.5 bg-neutral-700/50 rounded-full text-xs">
<Star className="w-3 h-3 text-yellow-400 fill-current" />
{isLoading ? (
- <div className="w-7 h-3.5 bg-neutral-600 rounded-sm animate-pulse"></div>
+ <div className="w-7.5 h-3.5 bg-neutral-600 rounded-sm animate-pulse"></div>
) : (
- starCount && <span className="h-3.5 w-7">{starCount}</span>
+ starCount && <span className="h-3.5 w-7.5">{starCount}</span>
)}
</div>
</a>