Skip to content

Commit 665453c

Browse files
committed
Update styles for results cells and enhance null safety for medical comments
1 parent 4da8112 commit 665453c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

frontend/src/pages/Reports/ReportDetailPage.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,10 +554,11 @@
554554
&__results-cell--test {
555555
flex: 2;
556556
font-size: 12px;
557-
min-width: 160px;
557+
min-width: 40px;
558558
overflow-wrap: break-word;
559559
white-space: normal; // Allow text to wrap
560560
word-break: break-word; // Ensure long words break
561+
line-height: 1.4em;
561562
}
562563

563564
&__results-cell--value {
@@ -579,11 +580,14 @@
579580
white-space: normal; // Allow text to wrap
580581
word-break: break-word; // Ensure long words break
581582
overflow-wrap: break-word;
583+
line-height: 1.4em;
584+
margin-left: 6px;
585+
margin-top: 4px;
586+
margin-bottom: 4px;
582587
}
583588

584589
&__results-cell-header--test {
585590
flex: 2;
586-
min-width: 160px;
587591
overflow-wrap: break-word;
588592
white-space: normal; // Allow text to wrap
589593
word-break: break-word; // Ensure long words break

frontend/src/pages/Reports/components/OriginalReportTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const OriginalReportTab: React.FC<OriginalReportTabProps> = ({ reportData }) =>
7777
</div>
7878

7979
{/* Medical Comments Section */}
80-
{reportData.medicalComments.length > 0 && (
80+
{reportData.medicalComments?.length > 0 && (
8181
<div className="report-detail-page__comments-section">
8282
<h4 className="report-detail-page__comments-title">Medical Comments:</h4>
8383
<div className="report-detail-page__comments-text">{reportData.medicalComments}</div>

0 commit comments

Comments
 (0)