Skip to content

Commit

Permalink
Merge pull request #55506 from Krishna2323/krishna2323/issue/54955
Browse files Browse the repository at this point in the history
fix: Workspace - Default label tooltip content is truncated when language is Spanish.
  • Loading branch information
rlinoz authored Jan 24, 2025
2 parents aa849f1 + 2452772 commit b883a37
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/workspace/WorkspacesListRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import useLocalize from '@hooks/useLocalize';
import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useTheme from '@hooks/useTheme';
import useThemeStyles from '@hooks/useThemeStyles';
import * as PersonalDetailsUtils from '@libs/PersonalDetailsUtils';
import {getDisplayNameOrDefault, getPersonalDetailsByIDs} from '@libs/PersonalDetailsUtils';
import {getUserFriendlyWorkspaceType} from '@libs/PolicyUtils';
import type {AvatarSource} from '@libs/UserUtils';
import type {AnchorPosition} from '@styles/index';
Expand Down Expand Up @@ -120,7 +120,7 @@ function WorkspacesListRow({
const threeDotsMenuContainerRef = useRef<View>(null);
const {shouldUseNarrowLayout} = useResponsiveLayout();

const ownerDetails = ownerAccountID && PersonalDetailsUtils.getPersonalDetailsByIDs([ownerAccountID], currentUserPersonalDetails.accountID).at(0);
const ownerDetails = ownerAccountID && getPersonalDetailsByIDs([ownerAccountID], currentUserPersonalDetails.accountID).at(0);

if (layoutWidth === CONST.LAYOUT_WIDTH.NONE) {
// To prevent layout from jumping or rendering for a split second, when
Expand Down Expand Up @@ -149,6 +149,7 @@ function WorkspacesListRow({
<Tooltip
maxWidth={variables.w184}
text={translate('workspace.common.defaultNote')}
numberOfLines={4}
>
<View style={[styles.flexRow, styles.gap2, styles.alignItemsCenter, styles.justifyContentEnd]}>
<Badge
Expand Down Expand Up @@ -225,7 +226,7 @@ function WorkspacesListRow({
<View style={styles.flex1}>
<WorkspacesListRowDisplayName
isDeleted={isDeleted}
ownerName={PersonalDetailsUtils.getDisplayNameOrDefault(ownerDetails)}
ownerName={getDisplayNameOrDefault(ownerDetails)}
/>
<Text
numberOfLines={1}
Expand Down

0 comments on commit b883a37

Please sign in to comment.