Skip to content

A local-first personal finance app

Fix AutoTextSize warnings (#5576)

Joel Jeremy Marqueza5d18929c8b9
diff --git a/packages/desktop-client/src/components/mobile/budget/BudgetTable.jsx b/packages/desktop-client/src/components/mobile/budget/BudgetTable.jsx
index 9b2ec864d2..d31056c7b8 100644
--- a/packages/desktop-client/src/components/mobile/budget/BudgetTable.jsx
+++ b/packages/desktop-client/src/components/mobile/budget/BudgetTable.jsx
@@ -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
diff --git a/upcoming-release-notes/5576.md b/upcoming-release-notes/5576.md
new file mode 100644
index 0000000000..e25051a177
--- /dev/null
+++ b/upcoming-release-notes/5576.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [joel-jeremy]
+---
+
+Fix AutoTextSize warnings