user card admin info
This commit is contained in:
parent
49c9b0b955
commit
14a4ca2f75
5 changed files with 95 additions and 24 deletions
|
|
@ -8,7 +8,15 @@ import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
|||
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
||||
|
||||
const BasicUserCard = {
|
||||
props: ['user'],
|
||||
props: {
|
||||
user: {
|
||||
type: Object,
|
||||
},
|
||||
showLineLabels: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
}
|
||||
},
|
||||
components: {
|
||||
UserPopover,
|
||||
UserAvatar,
|
||||
|
|
|
|||
|
|
@ -23,6 +23,10 @@
|
|||
:title="user.name"
|
||||
class="basic-user-card-user-name"
|
||||
>
|
||||
<strong v-if="showLineLabels">
|
||||
{{ $t('admin_dash.users.labels.name_colon') }}
|
||||
{{ ' ' }}
|
||||
</strong>
|
||||
<RichContent
|
||||
class="basic-user-card-user-name-value"
|
||||
:html="user.name"
|
||||
|
|
@ -31,6 +35,10 @@
|
|||
/>
|
||||
</div>
|
||||
<div>
|
||||
<strong v-if="showLineLabels">
|
||||
{{ $t('admin_dash.users.labels.handle_colon') }}
|
||||
{{ ' ' }}
|
||||
</strong>
|
||||
<user-link
|
||||
class="basic-user-card-screen-name"
|
||||
:user="user"
|
||||
|
|
@ -48,6 +56,7 @@
|
|||
display: flex;
|
||||
flex: 1 0;
|
||||
margin: 0;
|
||||
line-height: 1.25;
|
||||
|
||||
--emoji-size: 1em;
|
||||
|
||||
|
|
@ -69,7 +78,7 @@
|
|||
|
||||
&-user-name-value,
|
||||
&-screen-name {
|
||||
display: inline-block;
|
||||
display: inline;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue