diff --git a/front/css/app.css b/front/css/app.css index c7753a52..f6681c3d 100755 --- a/front/css/app.css +++ b/front/css/app.css @@ -1843,12 +1843,47 @@ input[readonly] { /* ----------------------------------------------------------------------------- Workflows ----------------------------------------------------------------------------- */ +#wf-content-wrapper +{ + display: grid; +} + +#workflowContainer +{ + display: grid; +} + +#workflowContainerWrap { + display: grid; +} #workflowContainerWrap .panel-collapse { padding: 5px; } +.workflows .col-sm-12, .workflows .col-sx-12 +{ + padding-right: 5px; + padding-left: 5px; +} + +.workflows .add-button-wrap .button-container +{ + padding-bottom: 5px; +} + +.workflows .actions-list { + + display: block; +} + +.workflows .form-group { + margin-bottom: 7px; + z-index: 1; + display: flex; +} + .workflows .section-title { padding: 10px; @@ -1857,8 +1892,8 @@ input[readonly] { } .workflows .panel, .workflows .box { - padding-top: 10px; - padding-bottom: 10px; + padding-top: 5px; + padding-bottom: 5px; } @@ -1866,25 +1901,32 @@ input[readonly] { color: #000; } +.workflows .button-container button +{ + display: inline-table; + width: 100%; +} + .workflows .bottom-buttons button { margin: 5px; } -.workflows .condition-list button +.workflows .button-container +{ + padding-right: 5px !important; + padding-left: 5px !important; +} + +/* .workflows .condition-list button { margin: 2px; -} +} */ -.button-container button +/* .button-container button { width:100%; -} - -#workflowContainerWrap -{ - display: contents; -} +} */ .workflow-card .panel-title { diff --git a/front/workflows.php b/front/workflows.php index 6155744a..edf1b448 100755 --- a/front/workflows.php +++ b/front/workflows.php @@ -7,7 +7,7 @@ -
+
-
+
@@ -131,7 +131,7 @@ function generateWorkflowUI(wf, wfIndex) { let $wfCollapsiblePanel = $("
", { - class: `panel-collapse collapse ${isOpen ? 'in' : ''}`, + class: `box panel-collapse collapse ${isOpen ? 'in' : ''}`, id: `wf-${wfIndex}-collapsible-panel` }); @@ -154,7 +154,7 @@ function generateWorkflowUI(wf, wfIndex) { // Trigger Section with dropdowns let $triggerSection = $("
", { - class: "box box-secondary col-sm-12 col-sx-12" + class: " col-sm-12 col-sx-12" } ).append($triggerTitle); @@ -200,7 +200,7 @@ function generateWorkflowUI(wf, wfIndex) { // Actions with action.field as dropdown let $actionsContainer = $("
", { - class: "actions-list box box-secondary" + class: "actions-list col-sm-12 col-sx-12 box " } ).append($actionsTitle); @@ -273,6 +273,7 @@ function generateWorkflowUI(wf, wfIndex) { }); // add action button + let $actionAddButtonWrap = $("
", { class: "button-container col-sm-12 col-sx-12" }); let $actionAddIcon = $("", { class: "fa-solid fa-plus" }); @@ -282,7 +283,8 @@ function generateWorkflowUI(wf, wfIndex) { wfIndex: wfIndex }).append($actionAddIcon).append("Add Action") - $actionsContainer.append($actionAddButton) + $actionAddButtonWrap.append($actionAddButton) + $actionsContainer.append($actionAddButtonWrap) let $wfRemoveButtonWrap = $("
", { class: "button-container col-sm-12 col-sx-12" }); @@ -318,6 +320,15 @@ function renderConditions(wfIndex, parentIndexPath, conditionGroupsIndex, condit lastConditionIndex = 0 + let $conditionListWrap = $("
", { + class: `condition-list-wrap ${conditionGroupsIndex==0?"col-sm-12":"col-sm-11"} col-sx-12`, + conditionGroupsIndex: conditionGroupsIndex + }); + + let $deleteConditionGroupWrap = $("
", { + class: "condition-group-wrap-del col-sm-1 col-sx-12" + }); + $.each(conditions, function (conditionIndex, condition) { let currentPath = `${parentIndexPath}.conditions[${conditionIndex}]`; @@ -394,7 +405,7 @@ function renderConditions(wfIndex, parentIndexPath, conditionGroupsIndex, condit class: "fa-solid fa-trash" }); let $conditionRemoveButton = $("