From 795cd9686d4497944d565d4cef178fe335be52ae Mon Sep 17 00:00:00 2001 From: christianbeeznst Date: Sat, 6 Jul 2024 20:32:52 -0500 Subject: [PATCH] Social: Refactor Invites, Add Group Search, Move Promoted Tab - refs BT#21101 --- assets/css/scss/_social.scss | 77 ++++- .../vue/components/social/MyFriendsCard.vue | 20 +- assets/vue/components/social/MyGroupsCard.vue | 26 +- assets/vue/components/usergroup/Layout.vue | 93 ++++- .../components/userreluser/InvitationList.vue | 58 ++-- assets/vue/components/userreluser/Layout.vue | 72 +++- .../userreluser/UserRelUserRequestsList.vue | 4 - assets/vue/composables/sidebarMenu.js | 5 +- assets/vue/composables/useSocialMenuItems.js | 3 - assets/vue/router/userreluser.js | 1 - assets/vue/views/social/SocialWall.vue | 50 ++- assets/vue/views/usergroup/List.vue | 322 +++++++++--------- .../vue/views/userreluser/UserRelUserList.vue | 98 ++---- 13 files changed, 519 insertions(+), 310 deletions(-) diff --git a/assets/css/scss/_social.scss b/assets/css/scss/_social.scss index b9320d4911..a6a0df9327 100644 --- a/assets/css/scss/_social.scss +++ b/assets/css/scss/_social.scss @@ -400,19 +400,21 @@ background: none; } - .tab-header { + .tab { + padding: 0.5rem 1rem; cursor: pointer; - padding: 0.75rem 1rem; - border-bottom: 3px solid transparent; + border-bottom: 2px solid transparent; transition: border-color 0.3s; } - .tab-header:hover { - border-bottom: 3px solid #64B5F6; + .tab:hover { + border-bottom: 2px solid #d1d5db; } - .active-tab:hover { - border-bottom: 3px solid #1976D2; + .tab-active { + border-bottom: 2px solid #3b82f6; + color: #3b82f6; + font-weight: bold; } } @@ -1036,3 +1038,64 @@ .circle-gray { color: gray; } + +.icon-spacing { + margin-right: 8px; +} + +#social-wall-container { + .tab { + padding: 0.5rem 1rem; + border-radius: 9999px; + transition: background-color 0.3s, color 0.3s; + cursor: pointer; + } + + .tab:hover { + background-color: #e2e8f0; + } + + .tab-active { + background-color: #3b82f6; + color: white; + } +} + +#social-group-container { + .user-invite-card { + max-width: 100%; + display: flex; + flex-direction: column; + align-items: center; + } + + .user-invite-card .flex { + display: flex; + justify-content: space-between; + align-items: center; + } + + .user-invite-card .flex h4 { + margin: 0; + } + + .user-invite-card .flex span { + display: block; + margin-top: 0.25rem; + color: #6b7280; + } + + .user-invite-card .flex .space-x-2 { + display: flex; + gap: 0.5rem; + } + + .user-invite-card .flex .space-x-2 button { + display: inline-flex; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + border-radius: 50%; + } +} diff --git a/assets/vue/components/social/MyFriendsCard.vue b/assets/vue/components/social/MyFriendsCard.vue index a7e6285949..6e3573c583 100644 --- a/assets/vue/components/social/MyFriendsCard.vue +++ b/assets/vue/components/social/MyFriendsCard.vue @@ -1,30 +1,30 @@