2022-06-16 16:30:05 +03:00
|
|
|
<template>
|
2022-07-31 12:35:48 +03:00
|
|
|
<Popover
|
|
|
|
|
trigger="click"
|
|
|
|
|
popover-class="popover-default user-popover"
|
|
|
|
|
:overlay-centers-selector="overlayCentersSelector || '.user-info .Avatar'"
|
|
|
|
|
:overlay-centers="overlayCenters && userPopoverOverlay"
|
|
|
|
|
:disabled="disabled"
|
|
|
|
|
>
|
|
|
|
|
<template #trigger>
|
|
|
|
|
<slot />
|
|
|
|
|
</template>
|
|
|
|
|
<template #content="{close}">
|
|
|
|
|
<UserCard
|
|
|
|
|
class="user-popover"
|
2025-08-05 17:52:30 +03:00
|
|
|
:show-close="true"
|
|
|
|
|
:show-expand="true"
|
2022-07-31 12:35:48 +03:00
|
|
|
:user-id="userId"
|
|
|
|
|
:hide-bio="true"
|
2022-08-08 23:42:22 +03:00
|
|
|
:avatar-action="userPopoverAvatarAction == 'close' ? close : userPopoverAvatarAction"
|
2025-08-05 17:52:30 +03:00
|
|
|
@close="close"
|
2022-07-31 12:35:48 +03:00
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</Popover>
|
2022-06-16 16:30:05 +03:00
|
|
|
</template>
|
|
|
|
|
|
2022-07-31 12:35:48 +03:00
|
|
|
<script src="./user_popover.js"></script>
|
2022-06-16 16:30:05 +03:00
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
/* popover styles load on-demand, so we need to override */
|
2023-01-09 13:02:16 -05:00
|
|
|
/* stylelint-disable block-no-empty */
|
2025-07-30 01:03:47 +03:00
|
|
|
.user-popover {
|
2025-08-05 14:10:07 +03:00
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
|
|
.user-info {
|
2025-08-28 15:16:31 +03:00
|
|
|
width: 100%;
|
2025-08-05 14:10:07 +03:00
|
|
|
margin: 1.2em;
|
|
|
|
|
}
|
2025-07-30 01:03:47 +03:00
|
|
|
|
2025-08-01 00:58:59 +03:00
|
|
|
.user-identity {
|
|
|
|
|
aspect-ratio: unset;
|
2025-08-01 02:13:44 +03:00
|
|
|
min-width: calc(min(30em, 98vw));
|
2025-08-01 00:58:59 +03:00
|
|
|
}
|
|
|
|
|
|
2025-07-29 17:38:08 +03:00
|
|
|
.user-card-inner {
|
|
|
|
|
display: flex;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.popover {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
2022-06-16 16:30:05 +03:00
|
|
|
}
|
2023-01-09 13:02:16 -05:00
|
|
|
/* stylelint-enable block-no-empty */
|
2022-06-16 16:30:05 +03:00
|
|
|
|
|
|
|
|
</style>
|