From 3fba75868f3184b9b8a0f8874352c85bbcc3e4a5 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 9 Nov 2025 08:29:26 +0100 Subject: [PATCH] increase size of factor textfield --- .../src/app/main/SensorsAnalogDialog.tsx | 2 +- mock-api/restServer.ts | 91 +++++++++++++++---- 2 files changed, 74 insertions(+), 19 deletions(-) diff --git a/interface/src/app/main/SensorsAnalogDialog.tsx b/interface/src/app/main/SensorsAnalogDialog.tsx index 5e43cde81..fbbd35466 100644 --- a/interface/src/app/main/SensorsAnalogDialog.tsx +++ b/interface/src/app/main/SensorsAnalogDialog.tsx @@ -288,7 +288,7 @@ const SensorsAnalogDialog = ({ name="f" label={LL.FACTOR()} value={numberValue(editItem.f)} - sx={{ width: '11ch' }} + sx={{ width: '14ch' }} type="number" variant="outlined" onChange={updateFormValue} diff --git a/mock-api/restServer.ts b/mock-api/restServer.ts index 5f0d7d09a..c464166d3 100644 --- a/mock-api/restServer.ts +++ b/mock-api/restServer.ts @@ -276,10 +276,10 @@ function updateMask(entity: any, de: any, dd: any) { const old_custom_name = dd.nodes[dd_objIndex].cn; console.log( 'comparing names, old (' + - old_custom_name + - ') with new (' + - new_custom_name + - ')' + old_custom_name + + ') with new (' + + new_custom_name + + ')' ); if (old_custom_name !== new_custom_name) { changed = true; @@ -375,15 +375,15 @@ function check_upgrade(version: string) { console.log( 'Upgrade this version (' + - THIS_VERSION + - ') to dev (' + - dev_version + - ') is ' + - (DEV_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') + - ' and to stable (' + - stable_version + - ') is ' + - (STABLE_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') + THIS_VERSION + + ') to dev (' + + dev_version + + ') is ' + + (DEV_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') + + ' and to stable (' + + stable_version + + ') is ' + + (STABLE_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') ); data = { emsesp_version: THIS_VERSION, @@ -971,11 +971,66 @@ const emsesp_sensordata = { // as: [], as: [ { id: 1, g: 35, n: 'motor', v: 0, u: 0, o: 17, f: 0, t: 0, d: false, s: false }, - { id: 2, g: 37, n: 'External switch', v: 13, u: 0, o: 17, f: 0, t: 1, d: false, s: false }, - { id: 3, g: 39, n: 'Pulse count', v: 144, u: 0, o: 0, f: 0, t: 2, d: false, s: false }, - { id: 4, g: 40, n: 'Pressure', v: 16, u: 17, o: 0, f: 0, t: 3, d: false, s: false }, - { id: 6, g: 39, n: 'core_voltage', v: 3.34, u: 23, o: 0, f: 0, t: 3, d: false, s: true }, - { id: 7, g: 36, n: 'supply_voltage', v: 12.21, u: 23, o: 0, f: 0, t: 3, d: false, s: true } + { + id: 2, + g: 37, + n: 'External switch', + v: 13, + u: 0, + o: 17, + f: 0, + t: 1, + d: false, + s: false + }, + { + id: 3, + g: 39, + n: 'Pulse count', + v: 144, + u: 0, + o: 0, + f: 0, + t: 2, + d: false, + s: false + }, + { + id: 4, + g: 40, + n: 'Pressure', + v: 16, + u: 17, + o: 0, + f: 0, + t: 3, + d: false, + s: false + }, + { + id: 6, + g: 39, + n: 'core_voltage', + v: 3.34, + u: 23, + o: 0, + f: 0.003771, + t: 3, + d: false, + s: true + }, + { + id: 7, + g: 36, + n: 'supply_voltage', + v: 12.21, + u: 23, + o: 0, + f: 0.017, + t: 3, + d: false, + s: true + } ], analog_enabled: true };