Compare commits

...

1 Commits

Author SHA1 Message Date
bl00dymarie a152ca0f40 Adapt note field for temperature and note 2024-02-20 13:38:03 +01:00
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ const SymptomBox = ({
<View style={styles.textContainer}>
<AppText style={symptomNameStyle}>{t(symptom)}</AppText>
{symptomDataToDisplay && (
<AppText style={textStyle} numberOfLines={3}>
<AppText style={textStyle} numberOfLines={4}>
{symptomDataToDisplay}
</AppText>
)}
+3 -1
View File
@@ -109,7 +109,7 @@ const SymptomEditView = ({ date, onClose, symptom, symptomData }) => {
const noteText = symptom === 'note' ? data.value : data.note
const inputProps = {
multiline: true,
numberOfLines: 4,
numberOfLines: 3,
scrollEnabled: true,
style: styles.input,
textAlignVertical: 'top',
@@ -176,10 +176,12 @@ const SymptomEditView = ({ date, onClose, symptom, symptomData }) => {
/>
</Segment>
)}
{/* this code below applies to the note field in temperature and the note tracking category */}
{shouldShow(symptomConfig.note) && (
<Segment style={styles.segmentBorder}>
<AppText>{symtomPage[symptom].note}</AppText>
<AppTextInput
{...(symptom === 'temperature' ? { inputProps } : {})}
multiline={true}
onChangeText={onEditNote}
placeholder={sharedLabels.enter}