Skip to content

A local-first personal finance app

[4036] - Fix Payee Name Overflow (#5489)

Emil Georgebacf3091b664
diff --git a/packages/desktop-client/src/components/util/DisplayId.tsx b/packages/desktop-client/src/components/util/DisplayId.tsx
index 0ff4c45636..ebca53d35f 100644
--- a/packages/desktop-client/src/components/util/DisplayId.tsx
+++ b/packages/desktop-client/src/components/util/DisplayId.tsx
@@ -3,6 +3,7 @@ import React from 'react';
import { useTranslation } from 'react-i18next';
import { Text } from '@actual-app/components/text';
+import { TextOneLine } from '@actual-app/components/text-one-line';
import { theme } from '@actual-app/components/theme';
import { useAccount } from '@desktop-client/hooks/useAccount';
@@ -43,11 +44,11 @@ function PayeeDisplayId({ id, noneColor }) {
const { t } = useTranslation();
const payee = usePayee(id);
return (
- <Text
+ <TextOneLine
style={payee == null ? { color: noneColor } : null}
title={payee ? payee.name : t('None')}
>
{payee ? payee.name : t('None')}
- </Text>
+ </TextOneLine>
);
}
diff --git a/upcoming-release-notes/5489.md b/upcoming-release-notes/5489.md
new file mode 100644
index 0000000000..b40d2bc341
--- /dev/null
+++ b/upcoming-release-notes/5489.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [emilgeo]
+---
+
+Fixes #4036 https://github.com/actualbudget/actual/issues/4036