From 1ac453058fdf98ab0f49cf8c1de57d9d5c98820a Mon Sep 17 00:00:00 2001
From: Angelina Filippova
Date: Thu, 27 Feb 2020 02:18:47 +0300
Subject: [PATCH] Change the way user profile is rendered to using flexbox
---
.../users/components/NewAccountDialog.vue | 5 +-
src/views/users/index.vue | 5 +-
src/views/users/show.vue | 155 ++++++++++--------
3 files changed, 90 insertions(+), 75 deletions(-)
diff --git a/src/views/users/components/NewAccountDialog.vue b/src/views/users/components/NewAccountDialog.vue
index 4190f3cc..5b32985d 100644
--- a/src/views/users/components/NewAccountDialog.vue
+++ b/src/views/users/components/NewAccountDialog.vue
@@ -139,9 +139,8 @@ export default {
.create-account-form-item-without-margin {
margin-bottom: 0px;
}
-@media
-only screen and (max-width: 760px),
-(min-device-width: 768px) and (max-device-width: 1024px) {
+
+@media only screen and (max-width:480px) {
.create-user-dialog {
width: 85%
}
diff --git a/src/views/users/index.vue b/src/views/users/index.vue
index 2940f776..780f9b39 100644
--- a/src/views/users/index.vue
+++ b/src/views/users/index.vue
@@ -269,9 +269,8 @@ export default {
font-size: 28px;
}
}
-@media
-only screen and (max-width: 760px),
-(min-device-width: 768px) and (max-device-width: 1024px) {
+
+@media only screen and (max-width:480px) {
.password-reset-token-dialog {
width: 85%
}
diff --git a/src/views/users/show.vue b/src/views/users/show.vue
index 40952aeb..cdc08767 100644
--- a/src/views/users/show.vue
+++ b/src/views/users/show.vue
@@ -23,81 +23,73 @@
-
-
-
-
-
-
-
- {{ $t('userProfile.nickname') }} |
-
- {{ user.nickname }}
- |
-
-
- ID |
-
- {{ user.id }}
- |
-
-
- {{ $t('userProfile.tags') }} |
-
- {{ tag }}
- —
- |
-
-
- {{ $t('userProfile.roles') }} |
-
-
- {{ $t('users.admin') }}
-
-
- {{ $t('users.moderator') }}
-
- —
- |
-
-
- {{ $t('userProfile.localUppercase') }} |
-
- {{ $t('userProfile.local') }}
- {{ $t('userProfile.external') }}
- |
-
-
- {{ $t('userProfile.activeUppercase') }} |
-
- {{ $t('userProfile.active') }}
- {{ $t('userProfile.deactivated') }}
- |
-
-
-
-
-
-
-
-
- {{ $t('userProfile.recentStatuses') }}
-
-
-
- {{ $t('userProfile.showPrivateStatuses') }}
-
-
-
-
+
+
+
+
+
+
+ {{ $t('userProfile.nickname') }} |
+
+ {{ user.nickname }}
+ |
+
+
+ ID |
+
+ {{ user.id }}
+ |
+
+
+ {{ $t('userProfile.tags') }} |
+
+ {{ tag }}
+ —
+ |
+
+
+ {{ $t('userProfile.roles') }} |
+
+
+ {{ $t('users.admin') }}
+
+
+ {{ $t('users.moderator') }}
+
+ —
+ |
+
+
+ {{ $t('userProfile.localUppercase') }} |
+
+ {{ $t('userProfile.local') }}
+ {{ $t('userProfile.external') }}
+ |
+
+
+ {{ $t('userProfile.activeUppercase') }} |
+
+ {{ $t('userProfile.active') }}
+ {{ $t('userProfile.deactivated') }}
+ |
+
+
+
+
+
+
+
{{ $t('userProfile.recentStatuses') }}
+
+ {{ $t('userProfile.showPrivateStatuses') }}
+
{{ $t('userProfile.noStatuses') }}
-
-
+
+
@@ -193,6 +185,11 @@ table {
margin-left: 28px;
color: #606266;
}
+.recent-statuses-container {
+ display: flex;
+ flex-direction: column;
+ width: 67%;
+}
.recent-statuses-header {
margin-top: 10px;
}
@@ -205,6 +202,9 @@ table {
line-height: 67px;
margin-right: 20px;
}
+.show-private-statuses {
+ margin-left: 28px;
+}
.recent-statuses {
margin-left: 28px;
}
@@ -218,6 +218,11 @@ table {
}
.user-profile-card {
margin: 0 20px;
+ width: 30%;
+ height: fit-content;
+}
+.user-profile-container {
+ display: flex;
}
.user-profile-table {
margin: 0;
@@ -225,4 +230,16 @@ table {
.user-profile-tag {
margin: 0 4px 4px 0;
}
+
+@media only screen and (max-width:480px) {
+ .avatar-name-container {
+ margin-bottom: 10px;
+ }
+ .user-page-header {
+ flex-direction: column;
+ align-items: flex-start;
+ padding: 0;
+ margin: 7px 0 15px 10px;
+ }
+}