Skip to content

Commit 980cf86

Browse files
ux(home): avoid hero shift during loading
Made-with: Cursor
1 parent bf4e203 commit 980cf86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function HomePage() {
126126
<div className="page-shell-inner page-shell-inner--home">
127127

128128
{/* Hero — landing: stats counter; user result: show @username */}
129-
{!certificate && !userRepos && (
129+
{!certificate && !userRepos && !loading && !userLoading && (
130130
<div style={{ marginTop: '0px' }}>
131131
<PageHero
132132
subtitle={
@@ -137,7 +137,7 @@ function HomePage() {
137137
</div>
138138
)}
139139

140-
{!certificate && userRepos && scannedUsername && (
140+
{!certificate && userRepos && scannedUsername && !loading && !userLoading && (
141141
<div style={{ marginTop: '0px' }}>
142142
<PageHero
143143
subtitle={

0 commit comments

Comments
 (0)