diff options
| author | Henry Jameson <spam@hjkos.com> | 2022-06-16 16:30:05 +0300 |
|---|---|---|
| committer | Henry Jameson <spam@hjkos.com> | 2022-06-16 16:48:10 +0300 |
| commit | d84cda7009d486a047953b1ca2d27acf35b8ddc1 (patch) | |
| tree | ae8e48736095f22ce66cf7cd71fc9cc391a9c542 /src/components/user_popover/user_popover.vue | |
| parent | 770d12f7adda5659ff01b83ad3e172c27bae818d (diff) | |
unify user popovers into a separate component
Diffstat (limited to 'src/components/user_popover/user_popover.vue')
| -rw-r--r-- | src/components/user_popover/user_popover.vue | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/components/user_popover/user_popover.vue b/src/components/user_popover/user_popover.vue new file mode 100644 index 00000000..7ad5c234 --- /dev/null +++ b/src/components/user_popover/user_popover.vue @@ -0,0 +1,34 @@ +<template> +<Popover + trigger="click" + popover-class="popover-default user-popover" + overlay-centers-selector=".user-info-avatar-link .Avatar" + :overlay-centers="overlayCenters" + :disabled="disabled" +> + <template v-slot:trigger> + <slot /> + </template> + <template v-slot:content> + <UserCard + class="user-popover" + :user-id="userId" + :hide-bio="true" + :bordered="false" + :allow-zooming-avatar="true" + :rounded="true" + /> + </template> +</Popover> +</template> + +<script src="./user_popover.js" ></script> + +<style lang="scss"> +@import '../../_variables.scss'; + +/* popover styles load on-demand, so we need to override */ +.user-popover.popover { +} + +</style> |
