Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render multi line text in Questionnaire Response #10216

Merged
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export default function ObservationsList(props: Props) {
</div>
)}
{item.value.value && (
<div className="mt-1 font-medium">{item.value.value}</div>
<div className="mt-1 font-medium whitespace-pre-wrap">
{item.value.value}
</div>
)}
{item.note && (
<div className="mt-1 text-sm text-muted-foreground">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function QuestionResponseValue({
</span>
)}
</div>
<div className="text-sm">
<div className="text-sm whitespace-pre-wrap">
{formatValue(String(value), question.type)}
{response.note && (
<span className="ml-2 text-xs text-muted-foreground">
Expand Down
Loading