From ca4d5950d08aec6fe016b56f7125f7328c1e19a1 Mon Sep 17 00:00:00 2001 From: kPherox Date: Sat, 16 Nov 2019 03:12:16 +0900 Subject: Display user profile fields --- src/components/user_profile/user_profile.vue | 50 ++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'src/components/user_profile/user_profile.vue') diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index 14082e83..f979eff4 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -11,6 +11,44 @@ :allow-zooming-avatar="true" rounded="top" /> +
+
+ +
+
+
+
+
+ {{ field.name }} +
+
+ {{ field.value }} +
+
+
Date: Mon, 18 Nov 2019 00:27:14 +0900 Subject: Fix emoji size --- src/components/user_profile/user_profile.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/components/user_profile/user_profile.vue') diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index f979eff4..d5aa514e 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -152,6 +152,18 @@ flex-basis: 500px; .user-profile-fields { + img { + object-fit: contain; + vertical-align: middle; + max-width: 100%; + max-height: 400px; + + &.emoji { + width: 32px; + height: 32px; + } + } + dl { margin: 1em 1.5em; -- cgit v1.2.3-70-g09d2 From 004827a7f17a0bc349baf1257aa5debe3c6f6060 Mon Sep 17 00:00:00 2001 From: kPherox Date: Mon, 18 Nov 2019 02:16:37 +0900 Subject: Change profile fields design to horizontal --- src/components/user_profile/user_profile.vue | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/components/user_profile/user_profile.vue') diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index d5aa514e..fdff0385 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -159,15 +159,31 @@ max-height: 400px; &.emoji { - width: 32px; - height: 32px; + width: 18px; + height: 18px; } } dl { + display: flex; margin: 1em 1.5em; + dt { + flex: 0 0 auto; + font-weight: 500; + color: var(--lightText); + width: 30%; + min-width: 120px; + } + + dd { + flex: 1 1 auto; + color: var(--text); + margin-left: 10px; + } + dt, dd { + line-height: 18px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; -- cgit v1.2.3-70-g09d2 From 87940ead8a9bedd312f10635462933a02e0ffb1c Mon Sep 17 00:00:00 2001 From: kPherox Date: Wed, 20 Nov 2019 18:59:37 +0900 Subject: Change css selectors to classname from elementname --- src/components/user_profile/user_profile.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/components/user_profile/user_profile.vue') diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index fdff0385..c1337411 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -18,6 +18,7 @@ -
-
-
- {{ field.name }} -
-
- {{ field.value }} -
-
-
Date: Wed, 20 Nov 2019 19:25:11 +0900 Subject: Change field name to right justify --- src/components/user_profile/user_profile.vue | 1 + 1 file changed, 1 insertion(+) (limited to 'src/components/user_profile/user_profile.vue') diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index 0268e5da..5bffba3a 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -158,6 +158,7 @@ .user-profile-field-name { flex: 0 0 auto; font-weight: 500; + text-align: right; color: var(--lightText); width: 30%; min-width: 120px; -- cgit v1.2.3-70-g09d2 From 064b59812c715d60526727d42c124375a2bc89d5 Mon Sep 17 00:00:00 2001 From: kPherox Date: Wed, 19 Feb 2020 21:00:39 +0900 Subject: Change to use tags removed fields instead of raw fields --- src/components/user_profile/user_profile.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/user_profile/user_profile.vue') diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index 5bffba3a..54f2d4b3 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -22,13 +22,13 @@ >