Skip to content

Commit

Permalink
fix: fix the config tab
Browse files Browse the repository at this point in the history
  • Loading branch information
xingwanying committed Jun 30, 2024
1 parent 46b9abc commit b0e6741
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions client/app/factory/edit/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,23 @@ export default function Edit({ params }: { params: { id: string } }) {
</div>
</div>
<div className="h-full grow overflow-y-auto overflow-x-hidden flex h-full flex-col">
{activeTab === 'chatConfig'
? chatConfigContent
: manualConfigContent}
<div
style={{
visibility: activeTab === 'chatConfig' ? 'visible' : 'hidden',
}}
>
{chatConfigContent}
</div>
<div
style={{
position: 'absolute',
width: '50%',
height: 'calc(100vh - 73px)',
visibility: activeTab !== 'chatConfig' ? 'visible' : 'hidden',
}}
>
{manualConfigContent}
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit b0e6741

Please sign in to comment.