mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 10:33:02 -05:00
Fix AutoTextSize warnings (#5576)
* Fix AutoTextSize warnings * Release notes
This commit is contained in:
committed by
GitHub
parent
989d332e1b
commit
a5d18929c8
@@ -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
|
||||
|
||||
6
upcoming-release-notes/5576.md
Normal file
6
upcoming-release-notes/5576.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Maintenance
|
||||
authors: [joel-jeremy]
|
||||
---
|
||||
|
||||
Fix AutoTextSize warnings
|
||||
Reference in New Issue
Block a user