mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-04 08:07:29 +00:00
fix: stop text fields cutting off their text at a larger font size
This commit is contained in:
@@ -71,7 +71,7 @@ function makeStyles(c: ThemePalette) {
|
|||||||
inputWrapper: {
|
inputWrapper: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
height: componentSizes.inputHeight, // h-10 = 40px
|
minHeight: componentSizes.inputHeight, // h-10 = 40px; grows with a larger system font
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
borderColor: c.border, // border-input
|
borderColor: c.border, // border-input
|
||||||
borderRadius: radius.sm, // rounded-md = 6px
|
borderRadius: radius.sm, // rounded-md = 6px
|
||||||
|
|||||||
@@ -1985,14 +1985,18 @@ function makeStyles(c: ThemePalette) {
|
|||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
paddingHorizontal: spacing.md,
|
paddingHorizontal: spacing.md,
|
||||||
height: componentSizes.inputHeight, // h-10 = 40px
|
// A minimum, not a fixed height: at a larger system font the text used
|
||||||
|
// to be cut off at the top.
|
||||||
|
minHeight: componentSizes.inputHeight, // h-10 = 40px
|
||||||
backgroundColor: c.surface,
|
backgroundColor: c.surface,
|
||||||
borderRadius: radius.sm,
|
borderRadius: radius.sm,
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
borderColor: c.border,
|
borderColor: c.border,
|
||||||
gap: spacing.sm,
|
gap: spacing.sm,
|
||||||
},
|
},
|
||||||
searchInput: { flex: 1, ...typography.body, color: c.text },
|
// No lineHeight and no Android default padding on a TextInput: both clip
|
||||||
|
// the text when the system font is scaled up.
|
||||||
|
searchInput: { flex: 1, fontSize: typography.body.fontSize, color: c.text, paddingVertical: 4 },
|
||||||
filterButton: {
|
filterButton: {
|
||||||
width: componentSizes.buttonMd, height: componentSizes.buttonMd,
|
width: componentSizes.buttonMd, height: componentSizes.buttonMd,
|
||||||
alignItems: 'center', justifyContent: 'center',
|
alignItems: 'center', justifyContent: 'center',
|
||||||
|
|||||||
Reference in New Issue
Block a user