Skip to content

Commit

Permalink
Ensure headings aren't needlessly rendered at the bottom of the page
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobeltrame committed Jul 29, 2024
1 parent 89cc839 commit 701387b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function EvaluationGridRow({rowTemplate, rows, t}) {
const row = rows ? rows.find(row => row.evaluation_grid_row_template_id === rowTemplate.id) : null

if (rowTemplate.control_type === 'heading') {
return <View style={{ ...styles.evaluationGridRow, fontWeight: '700', padding: '2mm 1.5mm 1mm' }}><Text>{ fixNewlines(rowTemplate.criterion) }</Text></View>
return <View style={{ ...styles.evaluationGridRow, fontWeight: '700', padding: '2mm 1.5mm 1mm' }} minPresenceAhead={175}><Text>{ fixNewlines(rowTemplate.criterion) }</Text></View>
}

return <View style={styles.evaluationGridRow} wrap={false}>
Expand Down

0 comments on commit 701387b

Please sign in to comment.