Fix AutoTextSize warnings (#5576)

* Fix AutoTextSize warnings

* Release notes
This commit is contained in:
Joel Jeremy Marquez
2025-08-19 08:14:21 -07:00
committed by GitHub
parent 989d332e1b
commit a5d18929c8
2 changed files with 51 additions and 37 deletions

View File

@@ -70,19 +70,21 @@ function ToBudget({ toBudget, onPress, show3Columns }) {
>
<Button variant="bare" onPress={onPress}>
<View>
<AutoTextSize
as={Label}
minFontSizePx={6}
maxFontSizePx={12}
mode="oneline"
title={amount < 0 ? t('Overbudgeted') : t('To Budget')}
style={{
...(amount < 0 ? styles.smallText : {}),
color: theme.formInputText,
flexShrink: 0,
textAlign: 'left',
}}
/>
<View>
<AutoTextSize
as={Label}
minFontSizePx={6}
maxFontSizePx={12}
mode="oneline"
title={amount < 0 ? t('Overbudgeted') : t('To Budget')}
style={{
...(amount < 0 ? styles.smallText : {}),
color: theme.formInputText,
flexShrink: 0,
textAlign: 'left',
}}
/>
</View>
<CellValue binding={toBudget} type="financial">
{({ type, value }) => (
<View>
@@ -458,14 +460,16 @@ function BudgetTableHeader({
}}
/>
)}
<AutoTextSize
as={Label}
minFontSizePx={6}
maxFontSizePx={12}
mode="oneline"
title={t('Budgeted')}
style={{ color: theme.formInputText, paddingRight: 4 }}
/>
<View>
<AutoTextSize
as={Label}
minFontSizePx={6}
maxFontSizePx={12}
mode="oneline"
title={t('Budgeted')}
style={{ color: theme.formInputText, paddingRight: 4 }}
/>
</View>
</View>
<View>
<PrivacyFilter>
@@ -524,14 +528,16 @@ function BudgetTableHeader({
}}
/>
)}
<AutoTextSize
as={Label}
minFontSizePx={6}
maxFontSizePx={12}
mode="oneline"
title={t('Spent')}
style={{ color: theme.formInputText, paddingRight: 4 }}
/>
<View>
<AutoTextSize
as={Label}
minFontSizePx={6}
maxFontSizePx={12}
mode="oneline"
title={t('Spent')}
style={{ color: theme.formInputText, paddingRight: 4 }}
/>
</View>
</View>
<View>
<PrivacyFilter>
@@ -566,14 +572,16 @@ function BudgetTableHeader({
{({ type, value }) => (
<View style={{ width: columnWidth }}>
<View style={{ flex: 1, alignItems: 'flex-end !important' }}>
<AutoTextSize
as={Label}
minFontSizePx={6}
maxFontSizePx={12}
mode="oneline"
title={t('Balance')}
style={{ color: theme.formInputText }}
/>
<View>
<AutoTextSize
as={Label}
minFontSizePx={6}
maxFontSizePx={12}
mode="oneline"
title={t('Balance')}
style={{ color: theme.formInputText }}
/>
</View>
<View>
<PrivacyFilter>
<AutoTextSize

View File

@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [joel-jeremy]
---
Fix AutoTextSize warnings