diff --git a/FRONTEND/src/App.css b/FRONTEND/src/App.css index cb4fc3b..d978190 100644 --- a/FRONTEND/src/App.css +++ b/FRONTEND/src/App.css @@ -17,3 +17,7 @@ button:focus { overflow-y: scroll !important; overscroll-behavior: contain; } + +.modalNoScroll > .mantine-Modal-inner > .mantine-Modal-content { + overflow-y: hidden !important; +} diff --git a/FRONTEND/src/components/Component.module.css b/FRONTEND/src/components/Component.module.css index 45d6b78..a1e613d 100644 --- a/FRONTEND/src/components/Component.module.css +++ b/FRONTEND/src/components/Component.module.css @@ -159,7 +159,8 @@ .scenarioCard { border: 2px solid transparent; - background: linear-gradient(white, white) padding-box, + background: + linear-gradient(white, white) padding-box, linear-gradient(145deg, #e0e0e0, #f5f5f5) border-box; } @@ -168,3 +169,14 @@ transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } + +.specRow { + padding: 9px 0; + border-bottom: 1px dashed #e9ecef; +} + +.connStatus { + padding: 8px 0; + border-radius: 8px; + width: 300px; +} diff --git a/FRONTEND/src/components/Modal/ModalTerminal.tsx b/FRONTEND/src/components/Modal/ModalTerminal.tsx index e52c583..c3fc24e 100644 --- a/FRONTEND/src/components/Modal/ModalTerminal.tsx +++ b/FRONTEND/src/components/Modal/ModalTerminal.tsx @@ -1,5 +1,6 @@ import { ActionIcon, + Badge, Box, Button, Card, @@ -88,7 +89,12 @@ const SwitchConnectionStatus = ({ const portName = line?.interface ? normalizePortName(line.interface) : ""; return ( - + Internet @@ -652,6 +658,7 @@ const ModalTerminal = ({ }} size={"100%"} style={{ position: "absolute", left: 0 }} + className={"modalNoScroll"} title={ @@ -881,7 +888,7 @@ const ModalTerminal = ({ - + @@ -910,11 +917,11 @@ const ModalTerminal = ({ style={{ width: "100%" }} > - + BAUD: - - {line?.baud || ""} + + {line?.baud || ""} - + PID: {line?.inventory?.vid ? ( - + {line?.inventory?.vid} ) : ( @@ -1031,10 +1039,11 @@ const ModalTerminal = ({ /> - + SN: - + IOS: @@ -1107,7 +1116,7 @@ const ModalTerminal = ({ : ""} - + MAC: @@ -1117,7 +1126,7 @@ const ModalTerminal = ({ : ""} - + License: @@ -1134,12 +1143,10 @@ const ModalTerminal = ({ : ""} - - - - Sh env/module: - - + + + Sh env/module: + {findDataShowEnv() ? findDataShowEnv()?.map( @@ -1153,7 +1160,7 @@ const ModalTerminal = ({ - + Memory: @@ -1166,7 +1173,7 @@ const ModalTerminal = ({ : ""} - + Flash: @@ -1249,11 +1256,7 @@ const ModalTerminal = ({ alignItems: "center", }} > - + -
- - - - List ports{" "} + + + + List ports{" "} + {isPhysicalTest ? `(${line?.listPortsPhysical?.length || 0}/${ line?.ports?.length || 0 })` : ""} - - - + + {isPhysicalTest && ( + + } + > + Running + + )} + + {isPhysicalTest && line?.ports ? line.ports.map((port, i) => ( - + {normalizePortName(port)} {port?.includes("SFP") ? ( SFP - ) : ( - "" - )} + ) : null} )) : null} -
+