From 15f20b445bd260d1c186593156f47905f3909b4f Mon Sep 17 00:00:00 2001 From: Rodrigo Antinarelli Date: Wed, 22 Jul 2020 17:04:05 -0300 Subject: [PATCH] fix: OHIF-215 - Patient information should truncate w/ ellipsis instead of expanding box (#1875) --- .../ViewportActionBar/ViewportActionBar.jsx | 41 +++++++++++++++---- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/platform/ui/src/components/ViewportActionBar/ViewportActionBar.jsx b/platform/ui/src/components/ViewportActionBar/ViewportActionBar.jsx index 53a06a640..0020bf2dd 100644 --- a/platform/ui/src/components/ViewportActionBar/ViewportActionBar.jsx +++ b/platform/ui/src/components/ViewportActionBar/ViewportActionBar.jsx @@ -6,7 +6,7 @@ import useOnClickOutside from '../../utils/useOnClickOutside'; const classes = { infoHeader: 'text-base text-primary-light', - infoText: 'text-base text-white', + infoText: 'text-base text-white max-w-24 truncate', firstRow: 'flex flex-col', row: 'flex flex-col ml-4', }; @@ -274,25 +274,39 @@ function PatientInfo({
- + {patientName}
Sex - + {patientSex}
Age - + {patientAge}
MRN - {MRN} + + {MRN} +
@@ -300,15 +314,21 @@ function PatientInfo({ Thickness - - {thickness ? thickness : 'N/A'} + + {thickness}
Spacing - + {spacing}
@@ -316,7 +336,10 @@ function PatientInfo({ Scanner - + {scanner}