Skip to content

Commit

Permalink
QuestionnaireResponse table - smaller text
Browse files Browse the repository at this point in the history
  • Loading branch information
mcjustin committed Jan 16, 2025
1 parent f452121 commit d0e8c65
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/lib/components/resource-templates/QuestionnaireResponse.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,14 @@
export let resource: QuestionnaireResponse; // Define a prop to pass the data to the component
// FIXME won't need this... and likely the rest of this file will need heavy edits...
function badgeColor(criticality: string) {
if (criticality) {
if (criticality == 'high') {
return 'danger';
} else {
return 'primary';
}
} else {
return 'secondary';
}
}
</script>

<style>
.small-text-table {
font-size: 12px; /* Adjust this value as needed */
}
</style>

<Badge color="primary">{resource.identifier.value}</Badge><br/>
Questionnaire reference: <a href='{resource.questionnaire}' target='_blank'>{resource.questionnaire}</a><br />
Authored: {resource.authored}
Expand All @@ -31,7 +25,7 @@ Authored: {resource.authored}
{/if}
{/if}

<table class="table table-bordered table-responsive table-sm">
<table class="table table-bordered table-responsive table-sm small-text-table">
<thead>
<tr><th colspan="3">Responses</th></tr>
</thead>
Expand Down

0 comments on commit d0e8c65

Please sign in to comment.