Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lelemm committed Nov 12, 2024
1 parent 30afb0e commit ae2506f
Showing 1 changed file with 65 additions and 63 deletions.
128 changes: 65 additions & 63 deletions packages/desktop-client/src/components/manager/BudgetList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -651,75 +651,77 @@ function UserAccessForFile({ fileId, currentUserId }: UserAccessForFileProps) {

return (
<View>
{multiuserEnabled && usersAccess.length > 0 && (
<View
style={{
marginLeft: '5px',
alignSelf: 'center',
}}
>
<Tooltip
content={
<View
style={{
margin: 5,
}}
>
<Text
style={{
...styles.altMenuHeaderText,
...styles.verySmallText,
color: theme.pageTextLight,
}}
>
File shared with:
</Text>
{multiuserEnabled &&
usersAccess.length > 0 &&
!(sortedUsersAccess.length === 1 && sortedUsersAccess[0].owner) && (
<View
style={{
marginLeft: '5px',
alignSelf: 'center',
}}
>
<Tooltip
content={
<View
style={{
padding: 0,
margin: 5,
}}
>
{sortedUsersAccess.map(user => (
<View key={user.userId} style={{ flexDirection: 'row' }}>
<SvgUser
style={{
width: 10,
height: 10,
opacity: 0.7,
marginTop: 3,
marginRight: 5,
}}
/>
<View
style={{
...styles.verySmallText,
color: theme.pageTextLight,
margin: 0,
listStylePosition: 'inside',
}}
>
{user.userId === currentUserId
? 'You'
: (user.displayName ?? user.userName)}
<Text
style={{
...styles.altMenuHeaderText,
...styles.verySmallText,
color: theme.pageTextLight,
}}
>
File shared with:
</Text>
<View
style={{
padding: 0,
}}
>
{sortedUsersAccess.map(user => (
<View key={user.userId} style={{ flexDirection: 'row' }}>
<SvgUser
style={{
width: 10,
height: 10,
opacity: 0.7,
marginTop: 3,
marginRight: 5,
}}
/>
<View
style={{
...styles.verySmallText,
color: theme.pageTextLight,
margin: 0,
listStylePosition: 'inside',
}}
>
{user.userId === currentUserId
? 'You'
: (user.displayName ?? user.userName)}
</View>
</View>
</View>
))}
))}
</View>
</View>
</View>
}
placement="bottom end"
>
<SvgUserGroup
style={{
width: 15,
height: 15,
alignSelf: 'flex-end',
opacity: 0.7,
}}
/>
</Tooltip>
</View>
)}
}
placement="bottom end"
>
<SvgUserGroup
style={{
width: 15,
height: 15,
alignSelf: 'flex-end',
opacity: 0.7,
}}
/>
</Tooltip>
</View>
)}
</View>
);
}

0 comments on commit ae2506f

Please sign in to comment.