From 79f5f4060640c892815a2c150f35a458eee7109a Mon Sep 17 00:00:00 2001 From: gugak Date: Wed, 7 May 2025 03:25:19 -0700 Subject: [PATCH] responsive nav buttons --- .../Custom-Views/Area_Nav_Button/view.json | 31 +++++-------------- .../Equipment-Views/Main_Panel/view.json | 4 +-- 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/MTN6_SCADA/com.inductiveautomation.perspective/views/Custom-Views/Area_Nav_Button/view.json b/MTN6_SCADA/com.inductiveautomation.perspective/views/Custom-Views/Area_Nav_Button/view.json index 9277712..e9caf7a 100644 --- a/MTN6_SCADA/com.inductiveautomation.perspective/views/Custom-Views/Area_Nav_Button/view.json +++ b/MTN6_SCADA/com.inductiveautomation.perspective/views/Custom-Views/Area_Nav_Button/view.json @@ -43,7 +43,7 @@ "name": "Button" }, "position": { - "basis": "120px", + "basis": "65%", "grow": 1 }, "propConfig": { @@ -59,26 +59,7 @@ "props": { "style": { "backgroundColor": "#FFFFFF", - "borderBottomColor": "#555555", - "borderBottomLeftRadius": 8, - "borderBottomRightRadius": 8, - "borderBottomStyle": "solid", - "borderBottomWidth": 4, - "borderLeftColor": "#000000", - "borderLeftStyle": "solid", - "borderLeftWidth": 1.5, - "borderRightColor": "#555555", - "borderRightStyle": "solid", - "borderRightWidth": 3, - "borderTopColor": "#000000", - "borderTopLeftRadius": 8, - "borderTopRightRadius": 8, - "borderTopStyle": "solid", - "borderTopWidth": 1.5, - "cursor": "pointer", - "outlineColor": "#000000", - "outlineStyle": "none", - "outlineWidth": "3" + "cursor": "pointer" }, "textStyle": { "color": "#000000", @@ -94,8 +75,8 @@ "name": "Main_Panel" }, "position": { - "basis": "35px", - "shrink": 0 + "basis": "30%", + "grow": 1 }, "propConfig": { "props.params.tagProps[0]": { @@ -131,6 +112,10 @@ "meta": { "name": "root" }, + "props": { + "alignContent": "flex-start", + "justify": "center" + }, "type": "ia.container.flex" } } \ No newline at end of file diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/Main_Panel/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/Main_Panel/view.json index 5a387ea..d2abf42 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/Main_Panel/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/Main_Panel/view.json @@ -10,7 +10,7 @@ "priority": 0, "priority_string": "No active alarms", "running_status": 0, - "searchId": "value", + "searchId": "PLC01", "state": 5, "state_string": "Unknown" }, @@ -371,7 +371,7 @@ "path": "material/offline_bolt", "style": { "borderColor": "#000000", - "borderStyle": "solid", + "borderStyle": "none", "borderWidth": "2px" } },