fix: sidebar data if slow will lead cls (#825)

This commit is contained in:
Innei 2023-07-25 22:44:16 +08:00 committed by GitHub
parent 15a0bfb839
commit 0ebc289958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -19,7 +19,9 @@ export default async function ActivitiesLayout({
<HomeActivitiesTabs />
{children}
</div>
<HomeSidebar />
<div className="w-80 pl-10 hidden lg:block space-y-10">
<HomeSidebar />
</div>
</>
)
}

View File

@ -15,7 +15,7 @@ export async function HomeSidebar({ hideSearch }: { hideSearch?: boolean }) {
const { t } = await getTranslation("index")
return (
<div className="w-80 pl-10 hidden lg:block space-y-10">
<>
<PromotionLinks />
{!hideSearch && <SearchInput />}
<div className="text-center text-zinc-700 space-y-3">
@ -63,6 +63,6 @@ export async function HomeSidebar({ hideSearch }: { hideSearch?: boolean }) {
</>
</ShowMoreContainer>
</div>
</div>
</>
)
}