History

Refactor layout and styling in ToolsView component

- Updated the `ToolsView` component to enhance layout and responsiveness. - Modified the border radius and added padding to improve visual consistency. - Implemented overflow handling for better content management in the editor, connections, and policies tabs.

Rhys Sullivan committed 8 months ago

Commit d19e8151 parent 2531d2f1 file · +4 −4Browse files

Unified · Split

executor/apps/web/src/components/tools/view.tsx+4−4
@@ -373,7 +373,7 @@ export function ToolsView() { · 372 unmodified lines
373373 if (sessionLoading) {
374374 return (
375375 <div className="flex h-full min-h-0 flex-col">
376− <div className="flex flex-1 min-h-0 rounded-lg border border-border/50 p-4">
376+ <div className="flex flex-1 min-h-0 rounded-none border border-border/50 p-4">
377377 <div className="flex h-full w-full">
378378 {/* Sidebar skeleton */}
379379 <div className="w-52 shrink-0 border-r border-border/30 pr-3 space-y-2 hidden lg:block">
@@ -402,7 +402,7 @@ export function ToolsView() { · 22 unmodified lines
402402 return (
403403 <div className="flex h-full min-h-0 flex-col">
404404 {activeTab === "editor" ? (
405− <div className="flex-1 min-h-0">
405+ <div className="flex-1 min-h-0 overflow-y-auto p-4 md:p-6 lg:p-8">
406406 <TaskComposer />
407407 </div>
408408 ) : null}
@@ -452,7 +452,7 @@ export function ToolsView() { · 43 unmodified lines
452452 ) : null}
453453
454454 {activeTab === "connections" ? (
455− <div className="flex-1 min-h-0">
455+ <div className="flex-1 min-h-0 overflow-y-auto p-4 md:p-6 lg:p-8">
456456 <CredentialsPanel
457457 sources={sourceItems}
458458 credentials={credentialItems}
@@ -464,7 +464,7 @@ export function ToolsView() { · 5 unmodified lines
464464 ) : null}
465465
466466 {activeTab === "policies" ? (
467− <div className="flex-1 min-h-0">
467+ <div className="flex-1 min-h-0 overflow-y-auto p-4 md:p-6 lg:p-8">
468468 <PoliciesPanel
469469 tools={visibleTools}
470470 loadingTools={loadingTools}