diff --git a/packages/frontend/src/components/MkUserPopup.vue b/packages/frontend/src/components/MkUserPopup.vue new file mode 100644 index 000000000..0720c8eea --- /dev/null +++ b/packages/frontend/src/components/MkUserPopup.vue @@ -0,0 +1,222 @@ + + + { emit('mouseover'); }" @mouseleave="() => { emit('mouseleave'); }"> + + + {{ $ts.followsYou }} + + + + + + + + + + + + + + {{ i18n.ts.noAccountDescription }} + + + + {{ $ts.notes }} + {{ number(user.notesCount) }} + + + {{ $ts.following }} + {{ number(user.followingCount) }} + + + {{ $ts.followers }} + {{ number(user.followersCount) }} + + + + + + + + + + + + + + + diff --git a/packages/frontend/src/components/MkUserPreview.vue b/packages/frontend/src/components/MkUserPreview.vue deleted file mode 100644 index 1086a2c65..000000000 --- a/packages/frontend/src/components/MkUserPreview.vue +++ /dev/null @@ -1,199 +0,0 @@ - - - { emit('mouseover'); }" @mouseleave="() => { emit('mouseleave'); }"> - - - {{ $ts.followsYou }} - - - - - - - - - - - - {{ $ts.notes }}{{ user.notesCount }} - - - {{ $ts.following }}{{ user.followingCount }} - - - {{ $ts.followers }}{{ user.followersCount }} - - - - - - - - - - - - - - - diff --git a/packages/frontend/src/directives/user-preview.ts b/packages/frontend/src/directives/user-preview.ts index ed5f00ca6..2f5936de3 100644 --- a/packages/frontend/src/directives/user-preview.ts +++ b/packages/frontend/src/directives/user-preview.ts @@ -24,7 +24,7 @@ export class UserPreview { const showing = ref(true); - popup(defineAsyncComponent(() => import('@/components/MkUserPreview.vue')), { + popup(defineAsyncComponent(() => import('@/components/MkUserPopup.vue')), { showing, q: this.user, source: this.el,
{{ $ts.notes }}
{{ $ts.following }}
{{ $ts.followers }}