Improve position of user avatar tooltips
This commit is contained in:
parent
06876b0ea2
commit
ce90f9cd25
|
@ -5,6 +5,7 @@
|
|||
export let users = []
|
||||
export let order = "ltr"
|
||||
export let size = "S"
|
||||
export let tooltipPosition = TooltipPosition.Top
|
||||
|
||||
$: uniqueUsers = unique(users, order)
|
||||
$: avatars = getAvatars(uniqueUsers, order)
|
||||
|
@ -47,7 +48,7 @@
|
|||
color="var(--spectrum-global-color-gray-500)"
|
||||
/>
|
||||
{:else}
|
||||
<UserAvatar {size} {user} tooltipPosition={TooltipPosition.Bottom} />
|
||||
<UserAvatar {size} {user} {tooltipPosition} />
|
||||
{/if}
|
||||
</span>
|
||||
{/each}
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
Heading,
|
||||
Modal,
|
||||
notifications,
|
||||
TooltipPosition,
|
||||
} from "@budibase/bbui"
|
||||
import AppActions from "components/deploy/AppActions.svelte"
|
||||
import { API } from "api"
|
||||
|
@ -172,7 +173,11 @@
|
|||
</div>
|
||||
<div class="toprightnav">
|
||||
<span>
|
||||
<UserAvatars users={$userStore} order="rtl" />
|
||||
<UserAvatars
|
||||
users={$userStore}
|
||||
order="rtl"
|
||||
tooltipPosition={TooltipPosition.Bottom}
|
||||
/>
|
||||
</span>
|
||||
<AppActions {application} {loaded} />
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue