-
+
@@ -1113,6 +1141,9 @@ export default { $postWidth__mobile: calc(100vw - 2rem); .post-body { + @include break-mobile-sm { + padding-top: 0.5rem; + } white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; @@ -1362,6 +1393,10 @@ ad-viewer { .post-user { // width: $postUserWidth; flex: 0 0 $postUserWidth; + @include break-mobile-sm { + display: flex; + flex: 0 0 calc(#{$postUserWidth}/1.25); + } margin-right: $postUserMargin; font-size: $font-size-tiny; text-align: center; @@ -1375,6 +1410,10 @@ ad-viewer { background: no-repeat center center; position: relative; margin-bottom: 1rem; + @include break-mobile-sm { + margin-bottom: 0; + margin-right: 0.5rem; + } width: $postUserWidth; height: $postUserWidth; @@ -1427,6 +1466,11 @@ ad-viewer { text-align: center; text-transform: uppercase; width: 100%; + @include break-mobile-sm { + text-align: left; + margin-bottom: 0; + width: auto; + } &-value { font-weight: 600; @@ -1445,6 +1489,66 @@ ad-viewer { } } } + + .post-title-mobile { + color: $secondary-font-color; + display: flex; + flex-direction: column; + align-items: left; + margin-bottom: 0.25rem; + width: 100%; + text-transform: none; + + .post-title-user { + display: flex; + align-items: center; + flex: 2 1 auto; + flex-wrap: wrap; + gap: 0.25rem; + padding-bottom: 0.1rem; + } + + span.username { + margin-right: 0.25rem; + color: $base-font-color; + font-size: $font-size-sm; + font-weight: 600; + &:hover { + color: $color-primary; + } + } + + .user-role { + @include truncate-ellipsis; + background-color: transparent; + border: 1px solid $secondary-font-color; + border-radius: 2px; + color: $secondary-font-color-dark; + display: inline-block; + font-size: $font-size-xs; + font-weight: 400; + line-height: 1.1; + margin-right: 0.5rem; + max-width: 140px; + padding: 0px 6px; + text-align: center; + } + + .user-activity-mobile { + display: flex; + gap: 0.5rem; + } + + .timestamp, .display-name { + display: flex; + color: $secondary-font-color; + font-size: $font-size-xs; + font-weight: 400; + } + .display-name { + color: $secondary-font-color-dark; + } + } } .post-content { From fade6201e77b6c92d3f2c669ff08f929791ccf3f Mon Sep 17 00:00:00 2001 From: Chris Rodrigues Date: Mon, 2 Dec 2024 14:01:43 -0800 Subject: [PATCH 06/11] style(user-posts): added more height to user posts in profile view to avoid words being clipped --- src/components/users/UserPosts.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/users/UserPosts.vue b/src/components/users/UserPosts.vue index b3d85d3e..a1063d1b 100644 --- a/src/components/users/UserPosts.vue +++ b/src/components/users/UserPosts.vue @@ -250,7 +250,7 @@ export default { } &.closed { width: 100%; - max-height: 18px; + max-height: 2.25rem; white-space: pre-wrap; overflow: hidden; text-overflow: ellipsis; From 2b1ae5cb73cd15272b058749933ce6ef3291db73 Mon Sep 17 00:00:00 2001 From: Chris Rodrigues Date: Mon, 2 Dec 2024 14:02:12 -0800 Subject: [PATCH 07/11] style(posts): Changed from 'Act' to 'Activity'; moved activity above merit to be consistent with old forum and profile page; removed padding on mobile view to remove some whitespace --- src/views/Posts.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/views/Posts.vue b/src/views/Posts.vue index ebb975c2..c72d7689 100644 --- a/src/views/Posts.vue +++ b/src/views/Posts.vue @@ -138,8 +138,8 @@
OP
{{post.user.title}}
+
Activity: {{post.user.activity}}
Merit: {{post.user.merit}}
-
Act: {{post.user.activity}}
@@ -169,8 +169,8 @@
OP
{{post.user.title}}
+
Activity: {{post.user.activity}}
Merit: {{post.user.merit}}
-
Act: {{post.user.activity}}
{{humanDate(post.created_at)}} @@ -1707,10 +1707,6 @@ ad-viewer { width: $postWidth__mobile; } } - - @include break-mobile-sm { - padding-bottom: 3rem; - } } .thread-title { From c7a3cf1517ae5082e929f0eab81b4db55e9f5546 Mon Sep 17 00:00:00 2001 From: Chris Rodrigues Date: Mon, 2 Dec 2024 14:02:25 -0800 Subject: [PATCH 08/11] style(profile): Reversed posts label and data to match other user-stats; removed whitespace around profile view; changed signature display to grid; Adjusted spacing for user-stats --- src/views/Profile.vue | 47 +++++++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/src/views/Profile.vue b/src/views/Profile.vue index e2e35515..a53111a4 100644 --- a/src/views/Profile.vue +++ b/src/views/Profile.vue @@ -68,16 +68,16 @@
+ Posts {{ user.post_count || 0 }} - Posts
-
- Last Seen - {{ humanDate(user.last_active, true) }} +
+ Last Active + {{ humanDate(user.last_active, true) }}
Created - {{ humanDate(user.created_at, true) }} + {{ humanDate(user.created_at, true) }}
@@ -492,7 +492,7 @@ export default { a { color: $text-gray-med; text-decoration: underline; } } } - .signature-block { display: flex; margin-bottom: 1rem; } + .signature-block { display: grid; margin-bottom: 1rem; } .signature { @include truncate-ellipsis; font-size: $font-size-xs; @@ -507,7 +507,11 @@ export default { } .profile-user-stats { display: flex; - margin-bottom: 2rem; + margin-bottom: 1rem; + column-gap: 0.5rem; + @include break-mobile-med { + justify-content: center; + } .stats { border: $border; border-radius: 6px; @@ -516,17 +520,23 @@ export default { flex-direction: column; align-items: center; justify-content: center; - margin-right: 1rem; padding: 0.5rem; text-align: center; - width: 100px; - max-width: 120px; - .label { font-size: $font-size-xs; } + width: auto; + white-space: nowrap; + @include break-mobile-med { + width: 100px; + max-width: 120px; + white-space: normal; + } + .label { + margin-bottom: 0.25rem; + font-size: $font-size-xs; + } .stat-text { - font-size: 2rem; + font-size: $font-size-lg; font-weight: 600; margin-bottom: 0.25rem; - &-sm { font-size: 21px; font-weight: 600; } } } } @@ -534,13 +544,12 @@ export default { align-items: center; flex-direction: column; .profile-avatar { - margin-bottom: 3rem; margin-right: 0; } .profile-user-details { .profile-user-name-role { flex-direction: column; - margin-bottom: 1.5rem; + margin-bottom: 1rem; h1, .username-screen, .user-role { margin-bottom: 0.25rem; } @@ -550,12 +559,16 @@ export default { .trust-profile { .trust-link { white-space: nowrap; } } } } -.profile-threads-posts { grid-area: main; } +.profile-threads-posts { + grid-area: main; + @include break-mobile-med { + border-top: $border; + } +} .profile-sidebar { color: $text-gray-dark; grid-area: sidebar; .actions-panel { - border-bottom: $border; line-height: 1.5; margin-bottom: 1rem; padding-bottom: 1rem; From 4990d1297fd28eeaa1700abee82926d8207e101d Mon Sep 17 00:00:00 2001 From: Chris Rodrigues Date: Tue, 3 Dec 2024 11:48:55 -0800 Subject: [PATCH 09/11] style(user-posts): Increasing height of user posts preview --- src/components/users/UserPosts.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/users/UserPosts.vue b/src/components/users/UserPosts.vue index a1063d1b..472444f3 100644 --- a/src/components/users/UserPosts.vue +++ b/src/components/users/UserPosts.vue @@ -250,7 +250,7 @@ export default { } &.closed { width: 100%; - max-height: 2.25rem; + max-height: 2.5rem; white-space: pre-wrap; overflow: hidden; text-overflow: ellipsis; From a2d720d1c1b718c326367ef5b1fbfcf66c444446 Mon Sep 17 00:00:00 2001 From: Chris Rodrigues Date: Tue, 3 Dec 2024 11:55:06 -0800 Subject: [PATCH 10/11] style(profile-margin): Adding bottom margin to be able to scroll to bottom of user posts --- src/views/Profile.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/Profile.vue b/src/views/Profile.vue index a53111a4..c4d50e11 100644 --- a/src/views/Profile.vue +++ b/src/views/Profile.vue @@ -563,6 +563,7 @@ export default { grid-area: main; @include break-mobile-med { border-top: $border; + margin-bottom: 3rem; } } .profile-sidebar { From ee3cf6ee482b5136daca3add340d550f3f7f71fc Mon Sep 17 00:00:00 2001 From: Chris Rodrigues Date: Tue, 3 Dec 2024 11:59:12 -0800 Subject: [PATCH 11/11] style(profile-margin): Removing margin bottom from previous commit --- src/views/Profile.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/views/Profile.vue b/src/views/Profile.vue index c4d50e11..a53111a4 100644 --- a/src/views/Profile.vue +++ b/src/views/Profile.vue @@ -563,7 +563,6 @@ export default { grid-area: main; @include break-mobile-med { border-top: $border; - margin-bottom: 3rem; } } .profile-sidebar {