mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
🐛 (autocomplete) height of the input box (#862)
This commit is contained in:
committed by
GitHub
parent
bfe896a30e
commit
4d0e9cadd3
@@ -244,7 +244,7 @@ function ConfigureField({
|
||||
field={field}
|
||||
subfield={subfield}
|
||||
type={type === 'id' && op === 'contains' ? 'string' : type}
|
||||
value={normalizeValue(value, op === 'oneOf')}
|
||||
value={value}
|
||||
multi={op === 'oneOf'}
|
||||
style={{ marginTop: 10 }}
|
||||
onChange={v => dispatch({ type: 'set-value', value: v })}
|
||||
@@ -530,18 +530,3 @@ export function AppliedFilters({ filters, editingFilter, onUpdate, onDelete }) {
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function normalizeValue(value, isMulti) {
|
||||
if (isMulti) {
|
||||
if (Array.isArray(value)) {
|
||||
return value;
|
||||
}
|
||||
return value.split(', ');
|
||||
}
|
||||
|
||||
if (Array.isArray(value)) {
|
||||
return value.join(', ');
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,8 @@ const colourStyles = {
|
||||
outline: 0,
|
||||
marginLeft: -1,
|
||||
marginRight: 1,
|
||||
padding: '6px 2px',
|
||||
padding: '5px 2px',
|
||||
fontSize: '13px',
|
||||
minHeight: 'auto',
|
||||
}),
|
||||
input: styles => ({
|
||||
|
||||
6
upcoming-release-notes/862.md
Normal file
6
upcoming-release-notes/862.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [MatissJanis]
|
||||
---
|
||||
|
||||
Autocomplete: styling fixes
|
||||
Reference in New Issue
Block a user