added build ways
This commit is contained in:
1 parent
2245fd556b
commit
cf29d9d61c
3 files changed
+14
-9
No files matched your search
@@ -19,21 +19,22 @@
|
|||||||
|
|
||||||
.automation-list--root.mobile .automation-editor--info-box {
|
.automation-list--root.mobile .automation-editor--info-box {
|
||||||
min-width: 100vw;
|
min-width: 100vw;
|
||||||
min-height: 100vh;
|
min-height: calc(100vh - 5em);
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
max-height: 100vh;
|
max-height: calc(100vh - 5em);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.automation-list--root.mobile .automation-editor--info-box-inner {
|
.automation-list--root.mobile .automation-editor--info-box-inner {
|
||||||
margin-top: 1.75em;
|
margin-top: 2.5em;
|
||||||
padding: 0.5em;
|
padding-left: 0.5em;
|
||||||
direction: rtl;
|
padding-right: 0.5em;
|
||||||
|
margin-bottom: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.automation-list--root.mobile .automation-editor--info-box--icon {
|
.automation-list--root.mobile .automation-editor--info-box--icon {
|
||||||
left: 1.25em;
|
left: 1.25em;
|
||||||
bottom: 1em;
|
bottom: 0em;
|
||||||
background-color: var(--primary);
|
background-color: var(--primary);
|
||||||
transform: rotate(90deg);
|
transform: rotate(90deg);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,12 @@ export const AutomationList: FC<AutomationListParams> = ({
|
|||||||
onAdd(defaultAutomation(`shortu-${automations.length}`));
|
onAdd(defaultAutomation(`shortu-${automations.length}`));
|
||||||
setCurrent(automations.length)
|
setCurrent(automations.length)
|
||||||
}}
|
}}
|
||||||
onSelectAutomation={setCurrent}
|
onSelectAutomation={i => {
|
||||||
|
setCurrent(i);
|
||||||
|
if (isMobile) {
|
||||||
|
setHideList(true)
|
||||||
|
}
|
||||||
|
}}
|
||||||
selected={current}
|
selected={current}
|
||||||
onRemove={onRemove}
|
onRemove={onRemove}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { FC, useState } from "react";
|
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 { AutomationSequenceNode } from "types/automations";
|
||||||
import { AutomationTrigger } from 'types/automations/triggers';
|
import { AutomationTrigger } from 'types/automations/triggers';
|
||||||
import { triggerToFlow } from "./triggerConvertor";
|
import { triggerToFlow } from "./triggerConvertor";
|
||||||
@@ -127,7 +127,6 @@ export const DAGAutomationFlow: FC<Props> = ({
|
|||||||
nodesDraggable={false}
|
nodesDraggable={false}
|
||||||
{...flowData}
|
{...flowData}
|
||||||
>
|
>
|
||||||
<MiniMap />
|
|
||||||
<Controls />
|
<Controls />
|
||||||
</ReactFlow>
|
</ReactFlow>
|
||||||
</>;
|
</>;
|
||||||
|
|||||||
Reference in new issue
Block a user