A local-first personal finance app
Enhance responsiveness of GenericInput in RuleEditor component for mobile devices (#5601)
Matiss Janis Aboltins102c6eaff6c6
diff --git a/packages/desktop-client/src/components/rules/RuleEditor.tsx b/packages/desktop-client/src/components/rules/RuleEditor.tsxindex e1fc504ac1..b5674b0eb1 100644--- a/packages/desktop-client/src/components/rules/RuleEditor.tsx+++ b/packages/desktop-client/src/components/rules/RuleEditor.tsx@@ -557,7 +557,13 @@ function ActionEditor({</>) : op === 'set-split-amount' ? (<>- <View style={{ padding: '5px 10px', lineHeight: '1em' }}>+ <View+ style={{+ padding: '5px 10px',+ lineHeight: '1em',+ flexShrink: 0,+ }}+ >{t('allocate')}</View>@@ -567,7 +573,12 @@ function ActionEditor({onChange={onChange}/>- <View style={{ flex: 1 }}>+ <View+ style={{+ flex: 1,+ minWidth: options.method === 'fixed-percent' ? 45 : 70,+ }}+ >{options.method !== 'remainder' && (// @ts-expect-error fix this<GenericInput@@ -618,7 +629,7 @@ function ActionEditor({</>) : null}- <Stack direction="row">+ <Stack direction="row" style={{ flexShrink: 0 }}><EditorButtonsonAdd={onAdd}onDelete={diff --git a/upcoming-release-notes/5601.md b/upcoming-release-notes/5601.mdnew file mode 100644index 0000000000..fe7a51f4db--- /dev/null+++ b/upcoming-release-notes/5601.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [MatissJanis]+---++Improve responsiveness of set-split-amount field on mobile