mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-10 16:26:43 -05:00
🐛 (Text) single-line text (#967)
This commit is contained in:
committed by
GitHub
parent
71908b6fb9
commit
db65e83722
@@ -37,9 +37,20 @@ export { default as View } from './common/View';
|
||||
export { default as Text } from './common/Text';
|
||||
export { default as Stack } from './Stack';
|
||||
|
||||
export function TextOneLine({ children, centered, ...props }) {
|
||||
export function TextOneLine({ children, ...props }) {
|
||||
return (
|
||||
<Text numberOfLines={1} {...props}>
|
||||
<Text
|
||||
{...props}
|
||||
style={[
|
||||
props.style,
|
||||
{
|
||||
overflow: 'hidden',
|
||||
textOverflow: 'ellipsis',
|
||||
whiteSpace: 'nowrap',
|
||||
display: 'block',
|
||||
},
|
||||
]}
|
||||
>
|
||||
{children}
|
||||
</Text>
|
||||
);
|
||||
|
||||
@@ -17,7 +17,6 @@ function CellValue({ binding, type, formatter, style, getStyle, debug }) {
|
||||
style,
|
||||
getStyle && getStyle(value),
|
||||
]}
|
||||
numberOfLines={1}
|
||||
data-testid={name}
|
||||
data-cellname={name}
|
||||
>
|
||||
|
||||
6
upcoming-release-notes/967.md
Normal file
6
upcoming-release-notes/967.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [MatissJanis]
|
||||
---
|
||||
|
||||
Re-introduce single line text blocks (useful for mobile)
|
||||
Reference in New Issue
Block a user