From 9d11170bf2f485146974f8fc933267b86dc25ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20Fadum?= Date: Thu, 21 Nov 2024 15:14:40 +0100 Subject: [PATCH] Update status card static text format --- .../FrontPage/RobotCards/RobotStatusCard.tsx | 21 ++++++++++++++++--- .../components/Pages/RobotPage/RobotPage.tsx | 4 ++-- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/Pages/FrontPage/RobotCards/RobotStatusCard.tsx b/frontend/src/components/Pages/FrontPage/RobotCards/RobotStatusCard.tsx index 28bea1187..3c13304f3 100644 --- a/frontend/src/components/Pages/FrontPage/RobotCards/RobotStatusCard.tsx +++ b/frontend/src/components/Pages/FrontPage/RobotCards/RobotStatusCard.tsx @@ -110,7 +110,12 @@ export const RobotStatusCard = ({ robot, mission }: RobotProps) => { - {TranslateText('Status')} + + {TranslateText('Status')} + { {robot.status !== RobotStatus.Offline ? ( <> - {TranslateText('Battery')} + + {TranslateText('Battery')} + { {robot.pressureLevel !== undefined && robot.pressureLevel !== null && ( - {TranslateText('Pressure')} + + {TranslateText('Pressure')} + ` justify-content: flex-end; gap: 2rem; @media (max-width: 600px) { - flex-direction: row; - align-items: flex-end; + flex-direction: column; + align-items: flex-start; } `