From cf29d9d61c674458f7afe21d83fe50992dd8d2fe Mon Sep 17 00:00:00 2001 From: Ari Date: Mon, 16 May 2022 22:03:27 -0400 Subject: [PATCH] added build ways --- .../src/components/AutomationList/index.mobile.css | 13 +++++++------ webapp/src/components/AutomationList/index.tsx | 7 ++++++- webapp/src/components/DAGFlow/index.tsx | 3 +-- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/webapp/src/components/AutomationList/index.mobile.css b/webapp/src/components/AutomationList/index.mobile.css index ac292ce..51d09a0 100644 --- a/webapp/src/components/AutomationList/index.mobile.css +++ b/webapp/src/components/AutomationList/index.mobile.css @@ -19,21 +19,22 @@ .automation-list--root.mobile .automation-editor--info-box { min-width: 100vw; - min-height: 100vh; + min-height: calc(100vh - 5em); max-width: 100vw; - max-height: 100vh; + max-height: calc(100vh - 5em); padding: 0; } .automation-list--root.mobile .automation-editor--info-box-inner { - margin-top: 1.75em; - padding: 0.5em; - direction: rtl; + margin-top: 2.5em; + padding-left: 0.5em; + padding-right: 0.5em; + margin-bottom: 2em; } .automation-list--root.mobile .automation-editor--info-box--icon { left: 1.25em; - bottom: 1em; + bottom: 0em; background-color: var(--primary); transform: rotate(90deg); } diff --git a/webapp/src/components/AutomationList/index.tsx b/webapp/src/components/AutomationList/index.tsx index 6d1d73f..38464eb 100644 --- a/webapp/src/components/AutomationList/index.tsx +++ b/webapp/src/components/AutomationList/index.tsx @@ -43,7 +43,12 @@ export const AutomationList: FC = ({ onAdd(defaultAutomation(`shortu-${automations.length}`)); setCurrent(automations.length) }} - onSelectAutomation={setCurrent} + onSelectAutomation={i => { + setCurrent(i); + if (isMobile) { + setHideList(true) + } + }} selected={current} onRemove={onRemove} /> diff --git a/webapp/src/components/DAGFlow/index.tsx b/webapp/src/components/DAGFlow/index.tsx index 30ab210..6292742 100644 --- a/webapp/src/components/DAGFlow/index.tsx +++ b/webapp/src/components/DAGFlow/index.tsx @@ -1,6 +1,6 @@ import { FC, useState } from "react"; -import ReactFlow, { MiniMap, Controls } from 'react-flow-renderer'; +import ReactFlow, { Controls } from 'react-flow-renderer'; import { AutomationSequenceNode } from "types/automations"; import { AutomationTrigger } from 'types/automations/triggers'; import { triggerToFlow } from "./triggerConvertor"; @@ -127,7 +127,6 @@ export const DAGAutomationFlow: FC = ({ nodesDraggable={false} {...flowData} > - ;