From ffc29b1ee00f32b71109cdbbf81971aa08f291b4 Mon Sep 17 00:00:00 2001 From: supertiger1234 Date: Wed, 26 Feb 2020 20:17:57 +0000 Subject: [PATCH] fixed some bugs --- src/components/app/MainNav.vue | 71 +++++++++++++++---- src/components/app/MyMiniInformation.vue | 2 +- .../app/Popouts/Popouts/AddFriend.vue | 4 +- .../Popouts/Popouts/ServerMemberContext.vue | 10 +-- .../app/Popouts/Popouts/TakeSurveyPopout.vue | 24 ++++--- .../Popouts/Popouts/userInformationPopout.vue | 2 +- .../app/ServerTemplate/ServerTemplate.vue | 4 +- src/components/app/Tabs/Explore/themes.vue | 38 +++++++++- .../app/Tabs/Explore/themesTemplate.vue | 48 ++----------- src/components/homePage/ProfilePopout.vue | 2 +- src/store/modules/messageModule.js | 1 + 11 files changed, 131 insertions(+), 75 deletions(-) diff --git a/src/components/app/MainNav.vue b/src/components/app/MainNav.vue index 55a12ea..517be0b 100644 --- a/src/components/app/MainNav.vue +++ b/src/components/app/MainNav.vue @@ -72,15 +72,30 @@ security - -
- settings + + +
+ settings +
@@ -90,6 +105,7 @@ import { bus } from "@/main.js"; import config from "@/config.js"; import settingsService from "@/services/settingsService"; import { isMobile } from "@/utils/Mobile"; +import statuses from "@/utils/statuses"; export default { data() { return { @@ -176,6 +192,10 @@ export default { } }, computed: { + getStatusColor() { + const status = this.$store.getters.user.status || 0; + return statuses[parseInt(status)].color; + }, mobileSize() { return ( this.$mq === "mobile" && @@ -208,7 +228,7 @@ export default { this.currentTab !== 2) ); }); - const mentioned = notifications.find(m => m.mentioned); + const mentioned = notificationsFiltered.find(m => m.mentioned); return { notification: !!notificationsFiltered.length, mentioned: !!mentioned @@ -256,7 +276,7 @@ export default { } .mobile { background: rgba(0, 0, 0, 0.4); - padding-left: 10px; + width: initial; .item { width: 40px; @@ -265,16 +285,42 @@ export default { margin-right: 5px; font-size: 25px; } - .tool-tip { + .tool-tip { top: -29px; } } + +.status-avatar { + height: 30px; + width: 30px; + border-radius: 50%; + .avatar { + height: 30px; + width: 30px; + border-radius: 50%; + object-fit: cover; + } + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); +} + +.settings { + margin-right: 14px; +} + .container { display: flex; flex-direction: row; height: 100%; width: 100%; + overflow: auto; } +.container { + scrollbar-width: thin; +} +.container::-webkit-scrollbar { + height: 3px; +} + .navigation-items { display: flex; flex-direction: row; @@ -282,7 +328,6 @@ export default { height: 100%; align-self: flex-start; align-content: center; - flex-shrink: 0; } .item { font-size: 24px; diff --git a/src/components/app/MyMiniInformation.vue b/src/components/app/MyMiniInformation.vue index ce861e8..53edcd0 100644 --- a/src/components/app/MyMiniInformation.vue +++ b/src/components/app/MyMiniInformation.vue @@ -12,7 +12,7 @@ />
{{ user.username }}
-
@{{ user.tag }}
+
:{{ user.tag }}
developer_board
-
Copy User@Tag
+
Copy User:Tag
developer_board
@@ -79,7 +79,7 @@ export default { const user = this.$store.getters["members/members"][ this.contextDetails.uniqueID ]; - const userTag = user.username + "@" + user.tag; + const userTag = user.username + ":" + user.tag; this.closeMenu(); this.$clipboard(userTag); }, @@ -109,9 +109,9 @@ export default { const mainMenuY = parseInt(mainMenu.style.top, 10); const mainMenuX = parseInt(mainMenu.style.left, 10); - rolesMenu.style.top = - mainMenuY + mainMenu.clientHeight - rolesMenu.clientHeight + "px"; - rolesMenu.style.left = mainMenuX - mainMenu.clientWidth - 11 + "px"; + rolesMenu.style.top = mainMenuY + 120 + "px"; + + rolesMenu.style.left = mainMenuX - mainMenu.clientWidth - 21 + "px"; }); }, setPosition() { diff --git a/src/components/app/Popouts/Popouts/TakeSurveyPopout.vue b/src/components/app/Popouts/Popouts/TakeSurveyPopout.vue index e6a5b5e..849afcc 100644 --- a/src/components/app/Popouts/Popouts/TakeSurveyPopout.vue +++ b/src/components/app/Popouts/Popouts/TakeSurveyPopout.vue @@ -59,7 +59,7 @@ export default { bottom: 0; left: 0; right: 0; - z-index: 99; + z-index: 99999999; display: flex; color: white; } @@ -73,21 +73,28 @@ export default { padding: 10px; overflow: hidden; box-shadow: 0px 0px 20px 5px #151515bd; - background: linear-gradient(#0b4155, #01677e); + background: linear-gradient( + to bottom, + rgba(0, 87, 153, 0.8) 0, + rgba(0, 118, 209, 0.8) + ); border-radius: 4px; + backdrop-filter: blur(5px); } .survay-icon .material-icons { color: white; - font-size: 120px; + font-size: 70px; } .survay-icon { margin: auto; margin-top: 5px; + margin-bottom: 10px; } .text { margin: auto; text-align: center; + margin-top: 10px; } .buttons { display: flex; @@ -96,21 +103,22 @@ export default { .button { padding: 10px; margin: 3px; - background: #014656; + background: rgba(0, 0, 0, 0.2); + border-radius: 4px; transition: 0.3s; user-select: none; cursor: pointer; } .valid { - background: #014656; + background: rgba(0, 0, 0, 0.2); } .valid:hover { - background: #02303c; + background: rgba(0, 0, 0, 0.4); } .warning { - background: rgba(255, 27, 27, 0.589); + background: rgba(255, 67, 67, 0.7); } .warning:hover { - background: rgb(255, 27, 27); + background: rgba(255, 67, 67, 0.9); } diff --git a/src/components/app/Popouts/Popouts/userInformationPopout.vue b/src/components/app/Popouts/Popouts/userInformationPopout.vue index 0cfbf0a..3a2f58e 100644 --- a/src/components/app/Popouts/Popouts/userInformationPopout.vue +++ b/src/components/app/Popouts/Popouts/userInformationPopout.vue @@ -14,7 +14,7 @@ />
{{ user.username }}
-
@{{ user.tag }}
+
:{{ user.tag }}