From a71f8ee27d4f67be04d45fbfc859be7ddbe9724b Mon Sep 17 00:00:00 2001 From: nguyentrungthat <80239428+nguentrungthat@users.noreply.github.com> Date: Mon, 24 Nov 2025 14:35:10 +0700 Subject: [PATCH] Update UI for CardLine and ModalTerminal components Removed ticket description from CardLine display and clipboard copy. Added buttonControl styles and applied them to control buttons in ModalTerminal. Improved internet status indicator logic and adjusted grid layout for better UI consistency. --- FRONTEND/src/components/CardLine.tsx | 8 ++------ FRONTEND/src/components/Component.module.css | 10 ++++++++++ FRONTEND/src/components/ModalTerminal.tsx | 19 +++++++++++++++---- 3 files changed, 27 insertions(+), 10 deletions(-) diff --git a/FRONTEND/src/components/CardLine.tsx b/FRONTEND/src/components/CardLine.tsx index de5853a..43401e7 100644 --- a/FRONTEND/src/components/CardLine.tsx +++ b/FRONTEND/src/components/CardLine.tsx @@ -179,10 +179,6 @@ const CardLine = ({ navigator.clipboard.writeText( `PID: ${line?.inventory?.pid || ""} | SN: ${ line?.inventory?.sn || "" - } | Ticket: ${ - line?.tickets && line?.tickets?.length > 0 - ? line?.tickets[0].description - : "" }` ); }} @@ -263,13 +259,13 @@ const CardLine = ({ - {line?.tickets && line?.tickets?.length > 0 ? ( + {/* {line?.tickets && line?.tickets?.length > 0 ? ( {line?.tickets[0].description ?? ""} ) : ( "" - )} + )} */}
- + Internet @@ -499,6 +507,7 @@ const ModalTerminal = ({