diff --git a/src/api/users.ts b/src/api/users.ts
index dc27ceb..c0f4e8a 100644
--- a/src/api/users.ts
+++ b/src/api/users.ts
@@ -4,6 +4,8 @@ import { BACKEND_URL } from "@/constants"
import { createDidFromEthereumAddress } from "@/utils/did"
import { PAGE_SIZE, http } from "./common"
+export const EXTRA_FIELD_COUNT_MAX = 10
+
export interface ProfileField {
name: string;
value: string;
diff --git a/src/views/Profile.vue b/src/views/Profile.vue
index fc147dc..5767bbb 100644
--- a/src/views/Profile.vue
+++ b/src/views/Profile.vue
@@ -143,10 +143,10 @@
-
{{ field.name }}
+
{{ field.name }}
(() => {
if (!profile) {
return []
}
- return profile.identity_proofs.concat(profile.fields)
+ return profile.identity_proofs
+ .concat(profile.fields)
+ .slice(0, EXTRA_FIELD_COUNT_MAX)
})
function isCurrentUser(): boolean {
@@ -734,6 +737,8 @@ $avatar-size: 170px;
.name {
font-weight: bold;
min-width: 120px;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
width: 120px;
}
diff --git a/src/views/ProfileForm.vue b/src/views/ProfileForm.vue
index 58977c3..095c6fe 100644
--- a/src/views/ProfileForm.vue
+++ b/src/views/ProfileForm.vue
@@ -42,7 +42,7 @@