Fixed search z index over blocks

This commit is contained in:
Emir Karabeg
2025-01-31 18:49:02 -08:00
parent c6267eb37d
commit d5d38fc2f4
2 changed files with 5 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ export function Toolbar() {
return (
<div className="fixed left-14 top-16 z-10 h-[calc(100vh-4rem)] w-64 border-r bg-background sm:block">
<div className="flex flex-col h-full">
<div className="px-4 pt-4">
<div className="px-4 pt-4 sticky top-0 bg-background z-20">
<div className="relative">
<Search className="absolute left-3 top-[50%] h-4 w-4 -translate-y-[50%] text-muted-foreground" />
<Input
@@ -65,7 +65,9 @@ export function Toolbar() {
</div>
{!searchQuery && (
<ToolbarTabs activeTab={activeTab} onTabChange={setActiveTab} />
<div className="sticky top-[72px] bg-background z-20">
<ToolbarTabs activeTab={activeTab} onTabChange={setActiveTab} />
</div>
)}
<ScrollArea className="h-[calc(100%-4rem)]">

View File

@@ -19,7 +19,7 @@ export const TranslateBlock: BlockConfig<ChatResponse> = {
description: 'Translate text to any language',
bgColor: '#FF4B4B',
icon: TranslateIcon,
category: 'basic',
category: 'advanced',
},
tools: {
access: ['openai.chat', 'anthropic.chat', 'google.chat'],