fix: make some more room for download totals

fixes #193
This commit is contained in:
Lei Nelissen
2024-02-11 22:47:34 +01:00
parent 04ce9f2979
commit f95c79b254
5 changed files with 57 additions and 18 deletions

View File

@@ -38,6 +38,7 @@ const ButtonText = styled.Text<{ active?: boolean, size: ButtonSize }>`
color: ${THEME_COLOR};
font-weight: 500;
font-size: 14px;
flex-shrink: 1;
${(props) => props.size === 'small' && css`
font-size: 12px;
@@ -78,7 +79,13 @@ const Button = React.forwardRef<View, ButtonProps>(function Button(props, ref) {
/>
}
{title ? (
<ButtonText active={isPressed} size={size}>{title}</ButtonText>
<ButtonText
active={isPressed}
size={size}
numberOfLines={1}
>
{title}
</ButtonText>
) : undefined}
</BaseButton>
);