From c7b67a978e3b6ce8a45c6dadd84c37a982ddd644 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sun, 4 Aug 2024 18:15:58 +0530 Subject: [PATCH] Align agents and automation page structure, widths and spacings - Remove invalid call to styles.main - Remove unnecessary top padding above side pane to keep side pane at consistent position across web app - Use same pageLayout styles and styling structure on agent like automation - Vertically center automation section and page title on it's row - Fix applying flex vs grid with tailwind --- .../web/app/agents/agents.module.css | 15 +++++++---- src/interface/web/app/agents/page.tsx | 22 ++++++++-------- src/interface/web/app/automations/page.tsx | 26 +++++++++---------- 3 files changed, 33 insertions(+), 30 deletions(-) diff --git a/src/interface/web/app/agents/agents.module.css b/src/interface/web/app/agents/agents.module.css index 73cbd7a3..8cc0cda5 100644 --- a/src/interface/web/app/agents/agents.module.css +++ b/src/interface/web/app/agents/agents.module.css @@ -16,16 +16,17 @@ div.agentPersonality { overflow: hidden; } +div.pageLayout { + max-width: 60vw; + margin: auto; + margin-bottom: 2rem; +} + div.sidePanel { position: fixed; height: 100%; } -div.pageLayout { - gap: 1rem; -} - - button.infoButton { border: none; background-color: transparent !important; @@ -55,6 +56,10 @@ div.agentList { grid-template-columns: 1fr; } + div.pageLayout { + max-width: 90vw; + } + div.sidePanel { position: relative; height: 100%; diff --git a/src/interface/web/app/agents/page.tsx b/src/interface/web/app/agents/page.tsx index f0fe38c3..f9c3a36b 100644 --- a/src/interface/web/app/agents/page.tsx +++ b/src/interface/web/app/agents/page.tsx @@ -262,14 +262,8 @@ export default function Agents() { } return ( -
- { - showLoginPrompt && - - } -
+
+
-
-
-

Agents

+
+
+

Agents

@@ -296,6 +290,12 @@ export default function Agents() {
+ { + showLoginPrompt && + + } diff --git a/src/interface/web/app/automations/page.tsx b/src/interface/web/app/automations/page.tsx index f1cb0f50..846d5843 100644 --- a/src/interface/web/app/automations/page.tsx +++ b/src/interface/web/app/automations/page.tsx @@ -342,7 +342,7 @@ function AutomationsCard(props: AutomationsCardProps) { - + {updatedAutomationData?.query_to_run || automation.query_to_run} @@ -873,7 +873,7 @@ function AutomationComponentWrapper(props: AutomationComponentWrapperProps) { }}>