From 3ea48ab5cb80b9eccbce82bdce01901b02a5c36e Mon Sep 17 00:00:00 2001 From: CuriousMagpie Date: Fri, 11 Aug 2023 17:12:31 -0400 Subject: [PATCH] WIP(user profile): dropdown menu and toggles and colors oh my --- .../src/components/userMenu/profile.vue | 80 +++++++++++++++---- 1 file changed, 64 insertions(+), 16 deletions(-) diff --git a/website/client/src/components/userMenu/profile.vue b/website/client/src/components/userMenu/profile.vue index b1dd3dd793..a45f37d9b0 100644 --- a/website/client/src/components/userMenu/profile.vue +++ b/website/client/src/components/userMenu/profile.vue @@ -112,6 +112,8 @@ {{ $t('sendMessage') }} + + + + + + @@ -177,6 +183,7 @@ + @@ -185,6 +192,7 @@ + + @@ -217,9 +226,9 @@ + - + {{ $t('shadowMute') }} -
-
+
+ {{ $t('mutePlayer') }} + @@ -507,11 +523,28 @@ right: 16px; bottom: 0; - &.closed { - top: 10px; + &.closed { + top: 10px; + } } - } - } + .toggle-switch-outer { + margin-bottom: 2px; + } + + .selectListItem .block-ban { + &:hover &:active { + background-color: rgba(201, 43, 43, 0.25); + color: $red-500 !important; + } + .dropdown-item:hover svg { + color: $red-500; + } + .with-icon { + color:$red-500; + } + } + } + .profile { .member-details { @@ -610,9 +643,9 @@ margin-bottom: 48px; .admin-action { - color: blue; + color: $red-500; cursor: pointer; - padding: 0 16px; + // padding: 0 16px; } } @@ -660,8 +693,21 @@ width: 16px; } - .photo { + .toggle-switch-outer { + margin-bottom: 2px; + } + .block-ban { + background-color: $white; + color: $gray-50; + + &:hover { + background-color: rgba(255, 182, 184, 0.25) !important; + color: $red-500 !important; + } + } + + .photo { img { max-width: 100%; } @@ -914,6 +960,7 @@ import axios from 'axios'; import each from 'lodash/each'; import cloneDeep from 'lodash/cloneDeep'; import closeX from '../ui/closeX'; +import toggle from '../ui/toggleSwitch'; import { mapState } from '@/libs/store'; import MemberDetails from '../memberDetails'; @@ -951,6 +998,7 @@ export default { profileStats, error404, closeX, + toggle, }, mixins: [externalLinks, userCustomStateMixin('userLoggedIn')], props: ['userId', 'startingPage'],