Skip to content

Commit 8b64388

Browse files
committed
Improving layout
1 parent 500623f commit 8b64388

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

frontend/src/pages/Reports/ReportDetailPage.scss

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@
5656

5757
ion-segment-button {
5858
--color: var(--ion-color-medium);
59-
--color-checked: var(--ion-color-primary);
60-
--indicator-color: var(--ion-color-primary);
59+
--color-checked: white;
60+
--background-checked: var(--ion-color-primary);
61+
--indicator-color: transparent;
6162
}
6263

6364
&--ai-insights {
@@ -98,6 +99,7 @@
9899
text-align: left;
99100
padding: 0.75rem 0.5rem;
100101
color: var(--ion-color-medium);
102+
background-color: var(--ion-color-light);
101103
border-bottom: 1px solid var(--ion-color-light-shade);
102104
font-weight: 600;
103105
}
@@ -111,23 +113,24 @@
111113
font-weight: 600;
112114
}
113115

114-
.result-range {
115-
color: var(--ion-color-medium);
116-
font-size: 0.9em;
117-
}
118-
119116
tr.out-of-range {
120117
.result-value {
121118
color: var(--ion-color-danger);
122119
}
123120
}
121+
122+
.result-range {
123+
color: var(--ion-color-medium);
124+
font-size: 0.9em;
125+
}
124126
}
125127

126128
.medical-comments {
127129
background-color: var(--ion-color-light);
128130
padding: 1rem;
129131
border-radius: 8px;
130-
margin-top: 1rem;
132+
margin-top: 1.5rem;
133+
margin-bottom: 0.5rem;
131134

132135
h3 {
133136
margin-top: 0;

frontend/src/pages/Reports/ReportDetailPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ const ReportDetailPage: React.FC = () => {
211211
{bloodTestData.results.map((result, index) => (
212212
<tr key={index} className={result.isOutOfRange ? 'out-of-range' : ''}>
213213
<td>{result.name}</td>
214-
<td className="result-value">{result.value}</td>
214+
<td className="result-value" style={result.isOutOfRange ? { color: 'var(--ion-color-danger)' } : {}}>
215+
{result.value}
216+
</td>
215217
<td className="result-range">{result.range}</td>
216218
</tr>
217219
))}

0 commit comments

Comments
 (0)