mirror of
https://github.com/langgenius/dify.git
synced 2026-04-22 11:47:40 +08:00
fix: vertically center empty search state to match Figma design
This commit is contained in:
@ -6,7 +6,7 @@ import SkillTemplatesSection from './skill-templates-section'
|
||||
|
||||
const StartTabContent = () => {
|
||||
return (
|
||||
<div className="h-full w-full overflow-auto bg-components-panel-bg">
|
||||
<div className="flex h-full w-full flex-col overflow-auto bg-components-panel-bg">
|
||||
<CreateImportSection />
|
||||
<SkillTemplatesSection />
|
||||
</div>
|
||||
|
||||
@ -78,7 +78,7 @@ const SkillTemplatesSection = () => {
|
||||
}, [searchQuery])
|
||||
|
||||
return (
|
||||
<section className="flex flex-col gap-3">
|
||||
<section className="flex flex-1 flex-col gap-3">
|
||||
<div className="sticky top-0 z-10 flex flex-col gap-3 bg-components-panel-bg px-6 pb-1 pt-2">
|
||||
<SectionHeader
|
||||
title={t('skill.startTab.templatesTitle')}
|
||||
@ -92,8 +92,8 @@ const SkillTemplatesSection = () => {
|
||||
</div>
|
||||
{filtered.length === 0 && searchQuery
|
||||
? (
|
||||
<div className="flex flex-col items-center justify-center gap-y-2 py-16">
|
||||
<SearchMenu className="size-8 text-text-quaternary" />
|
||||
<div className="flex flex-1 flex-col items-center justify-center gap-y-2">
|
||||
<SearchMenu className="size-12 text-text-quaternary" />
|
||||
<span className="system-sm-regular text-text-tertiary">
|
||||
{t('skill.startTab.noTemplatesFound')}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user