Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: fix automations scrolling (#7884)

Max Deichmanncbfc78d0e3dc
diff --git a/web/src/features/automations/components/AutomationSidebar.tsx b/web/src/features/automations/components/AutomationSidebar.tsx
index d2c744a608..bb01b93120 100644
--- a/web/src/features/automations/components/AutomationSidebar.tsx
+++ b/web/src/features/automations/components/AutomationSidebar.tsx
@@ -55,10 +55,7 @@ export const AutomationSidebar: React.FC<AutomationSidebarProps> = ({
return (
<div
- className={cn(
- "flex min-h-[60vh] flex-col border-r bg-muted/10",
- sidebarWidth,
- )}
+ className={cn("flex h-full flex-col border-r bg-muted/10", sidebarWidth)}
>
<div className="min-h-0 flex-1 overflow-y-auto">
<div className="px-4 pt-4">
diff --git a/web/src/features/automations/components/automations.tsx b/web/src/features/automations/components/automations.tsx
index 0bb919c9f0..5799cec65a 100644
--- a/web/src/features/automations/components/automations.tsx
+++ b/web/src/features/automations/components/automations.tsx
@@ -274,7 +274,7 @@ export default function AutomationsPage() {
if (view === "create") {
return (
- <div className="p-6">
+ <div className="h-full p-6">
<AutomationForm
projectId={projectId}
onSuccess={handleCreateSuccess}
@@ -287,7 +287,7 @@ export default function AutomationsPage() {
if (view === "edit" && editingAutomation) {
return (
- <div className="p-6">
+ <div className="h-full p-6">
<AutomationForm
projectId={projectId}
onSuccess={handleEditSuccess}
@@ -301,7 +301,7 @@ export default function AutomationsPage() {
if (selectedAutomation) {
return (
- <div className="p-6">
+ <div className="h-full p-6">
<AutomationDetails
key={selectedAutomation.automationId}
projectId={projectId}
@@ -315,7 +315,7 @@ export default function AutomationsPage() {
}
return (
- <div className="p-6">
+ <div className="h-full p-6">
<div className="flex h-full items-center justify-center text-muted-foreground">
<div className="text-center">
<h3 className="text-lg font-medium">Select a webhook</h3>
@@ -347,15 +347,16 @@ export default function AutomationsPage() {
),
}}
>
- <div className="flex h-full">
- <AutomationSidebar
- projectId={projectId}
- selectedAutomation={selectedAutomation}
- onAutomationSelect={handleAutomationSelect}
- />
- <div className="flex-1 overflow-auto">{renderMainContent()}</div>
+ <div className="h-full overflow-hidden contain-layout">
+ <div className="flex h-full">
+ <AutomationSidebar
+ projectId={projectId}
+ selectedAutomation={selectedAutomation}
+ onAutomationSelect={handleAutomationSelect}
+ />
+ <div className="flex-1 overflow-auto">{renderMainContent()}</div>
+ </div>
</div>
-
{/* Webhook Secret Dialog */}
<Dialog open={showSecretDialog} onOpenChange={setShowSecretDialog}>
<DialogContent className="max-w-4xl">