From b034e1db671a023268b3293d787e34db9615af79 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sat, 26 Oct 2024 11:31:11 -0400 Subject: [PATCH] fix inconsistent relation badges between user profile and user info block --- locales/index.d.ts | 36 +++++++++++++ .../frontend/src/components/MkUserInfo.vue | 36 ++++++++++++- packages/frontend/src/pages/user/home.vue | 54 +++++++++---------- 3 files changed, 98 insertions(+), 28 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 535e88f7c7..d1cb1f97ea 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -5353,6 +5353,10 @@ export interface Locale extends ILocale { * オンにすると、このお知らせは通知されず、既読にする必要もなくなります。 */ "silenceDescription": string; + /** + * New + */ + "new": string; }; "_initialAccountSetting": { /** @@ -8442,6 +8446,10 @@ export interface Locale extends ILocale { * アプリケーションにアクセス許可を与えるには、ログインが必要です。 */ "pleaseLogin": string; + /** + * Allowed + */ + "allowed": string; }; "_antennaSources": { /** @@ -10603,6 +10611,30 @@ export interface Locale extends ILocale { * Mutuals */ "mutuals": string; + /** + * Private account + */ + "isLocked": string; + /** + * Administrator + */ + "isAdmin": string; + /** + * Bot user + */ + "isBot": string; + /** + * Open + */ + "open": string; + /** + * Destination address + */ + "emailDestination": string; + /** + * Date + */ + "date": string; /** * Quoted. */ @@ -10964,6 +10996,10 @@ export interface Locale extends ILocale { * Blocking you */ "blockingYou": string; + /** + * Show warning when opening external URLs + */ + "warnExternalUrl": string; "_mfm": { /** * This is not a widespread feature, it may not display properly on most other fedi software, including other Misskey forks diff --git a/packages/frontend/src/components/MkUserInfo.vue b/packages/frontend/src/components/MkUserInfo.vue index e528f04dfc..73cdd9ce00 100644 --- a/packages/frontend/src/components/MkUserInfo.vue +++ b/packages/frontend/src/components/MkUserInfo.vue @@ -11,7 +11,15 @@ SPDX-License-Identifier: AGPL-3.0-only

- {{ i18n.ts.followsYou }} +
@@ -144,4 +152,30 @@ defineProps<{ top: 8px; right: 8px; } + +.infoBadges { + position: absolute; + top: 12px; + left: 12px; + + display: flex; + flex-direction: row; + + padding: 0; + margin: 0; + + > * { + padding: 4px 8px; + color: #fff; + background: rgba(0, 0, 0, 0.7); + font-size: 0.7em; + border-radius: var(--radius-sm); + list-style-type: none; + margin-left: 0; + } + + > :not(:first-child) { + margin-left: 8px; + } +} diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue index c3150dac95..60b2cd480e 100644 --- a/packages/frontend/src/pages/user/home.vue +++ b/packages/frontend/src/pages/user/home.vue @@ -30,7 +30,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-