Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions client/src/components/ListPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ const ListPane = <T extends object>({
};

return (
<div className="bg-card border border-border rounded-lg shadow">
<div className="p-4 border-b border-gray-200 dark:border-border">
<div className="bg-card border border-border rounded-lg shadow h-full flex flex-col overflow-hidden">
<div className="p-4 border-b border-gray-200 dark:border-border flex-shrink-0">
<div className="flex items-center justify-between gap-4">
<h3 className="font-semibold dark:text-white flex-shrink-0">
{title}
Expand Down Expand Up @@ -92,24 +92,24 @@ const ListPane = <T extends object>({
</div>
</div>
</div>
<div className="p-4">
<div className="p-4 flex flex-col flex-1 overflow-hidden">
<Button
variant="outline"
className="w-full mb-4"
className="w-full mb-4 flex-shrink-0"
onClick={listItems}
disabled={isButtonDisabled}
>
{buttonText}
</Button>
<Button
variant="outline"
className="w-full mb-4"
className="w-full mb-4 flex-shrink-0"
onClick={clearItems}
disabled={items.length === 0}
>
Clear
</Button>
<div className="space-y-2 overflow-y-auto max-h-96">
<div className="space-y-2 overflow-y-auto flex-1">
{filteredItems.map((item, index) => (
<div
key={index}
Expand Down
10 changes: 5 additions & 5 deletions client/src/components/ToolsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ const ToolsTab = ({
});

return (
<TabsContent value="tools">
<div className="grid grid-cols-2 gap-4">
<TabsContent value="tools" className="h-[calc(100vh-16rem)]">
<div className="grid grid-cols-2 gap-4 h-full">
<ListPane
items={tools}
listItems={listTools}
Expand Down Expand Up @@ -178,8 +178,8 @@ const ToolsTab = ({
isButtonDisabled={!nextCursor && tools.length > 0}
/>

<div className="bg-card border border-border rounded-lg shadow">
<div className="p-4 border-b border-gray-200 dark:border-border">
<div className="bg-card border border-border rounded-lg shadow h-full flex flex-col overflow-hidden">
<div className="p-4 border-b border-gray-200 dark:border-border flex-shrink-0">
<div className="flex items-center gap-2">
{selectedTool && (
<IconDisplay
Expand All @@ -192,7 +192,7 @@ const ToolsTab = ({
</h3>
</div>
</div>
<div className="p-4">
<div className="p-4 overflow-y-auto flex-1">
{selectedTool ? (
<div className="space-y-4">
{error && (
Expand Down