From d5f35e4a7402ac3aa0853dfb7a25d78be92ca006 Mon Sep 17 00:00:00 2001 From: DCCONSTRUCTIONS Date: Wed, 4 Nov 2026 18:18:33 +0300 Subject: [PATCH] feat(battery): support compact charge indicators and header offset --- .../components/battery/BatteryDesignSettings.tsx | 5 +++-- .../src/components/battery/BatteryIndicator.tsx | 2 +- .../src/core/batteryScene/appearance.ts | 6 +++--- .../fleet/observation/ObservationBattery.tsx | 2 +- apps/control-station/test/batteryScene.test.mjs | 10 +++++----- docs/adr/0048_ROVER_SCENE_EDITOR.md | 13 ++++++++++++- 6 files changed, 25 insertions(+), 13 deletions(-) diff --git a/apps/control-station/src/components/battery/BatteryDesignSettings.tsx b/apps/control-station/src/components/battery/BatteryDesignSettings.tsx index 656a5571..1f25fff7 100644 --- a/apps/control-station/src/components/battery/BatteryDesignSettings.tsx +++ b/apps/control-station/src/components/battery/BatteryDesignSettings.tsx @@ -22,9 +22,10 @@ export function BatteryDesignSettings({value,update}:{value:BatteryAppearance;up {range('Прозрачность стекла, %',100-p.glass.tintOpacity,0,100,transparency=>glass({tintOpacity:100-transparency}))} {range('Размытие стекла, px',p.glass.blur,0,60,blur=>glass({blur}))} : - {range('Ширина индикатора, px',i.width,64,320,width=>indicator({width}))} - {range('Высота индикатора, px',i.height,24,96,height=>indicator({height}))} + {range('Ширина индикатора, px',i.width,32,320,width=>indicator({width}))} + {range('Высота индикатора, px',i.height,12,96,height=>indicator({height}))} {range('Радиус углов индикатора, px',i.radius,0,48,radius=>indicator({radius}))} + {range('Отступ от кнопок шапки влево, px',i.offset,0,320,offset=>indicator({offset}))}