From 71863061c691df7f59cf4be283a3e0772d485378 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 4 Apr 2022 19:41:09 +0300 Subject: fixed tons of stuff, at least it looks normalish on desktop --- src/components/notifications/notifications.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/notifications/notifications.vue') diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index 2ce5d56f..9d8fa059 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -6,7 +6,7 @@
{{ $t('notifications.notifications') }} -- cgit v1.2.3-70-g09d2 From 6a319154d94c51f0464e0de31c6f88fbe20defea Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 5 Apr 2022 19:22:15 +0300 Subject: teleport bread --- src/App.js | 4 +- src/App.scss | 10 ++- src/App.vue | 9 +- src/components/mobile_nav/mobile_nav.js | 3 +- src/components/mobile_nav/mobile_nav.vue | 5 +- src/components/notifications/notifications.js | 15 +++- src/components/notifications/notifications.vue | 116 +++++++++++++------------ 7 files changed, 88 insertions(+), 74 deletions(-) (limited to 'src/components/notifications/notifications.vue') diff --git a/src/App.js b/src/App.js index b2ec95d4..827692a6 100644 --- a/src/App.js +++ b/src/App.js @@ -1,6 +1,5 @@ import UserPanel from './components/user_panel/user_panel.vue' import NavPanel from './components/nav_panel/nav_panel.vue' -import Notifications from './components/notifications/notifications.vue' import InstanceSpecificPanel from './components/instance_specific_panel/instance_specific_panel.vue' import FeaturesPanel from './components/features_panel/features_panel.vue' import WhoToFollowPanel from './components/who_to_follow_panel/who_to_follow_panel.vue' @@ -16,13 +15,14 @@ import PostStatusModal from './components/post_status_modal/post_status_modal.vu import GlobalNoticeList from './components/global_notice_list/global_notice_list.vue' import { windowWidth, windowHeight } from './services/window_utils/window_utils' import { mapGetters } from 'vuex' +import { defineAsyncComponent } from 'vue' export default { name: 'app', components: { UserPanel, NavPanel, - Notifications, + Notifications: defineAsyncComponent(() => import('./components/notifications/notifications.vue')), InstanceSpecificPanel, FeaturesPanel, WhoToFollowPanel, diff --git a/src/App.scss b/src/App.scss index e32a2d36..1867a54d 100644 --- a/src/App.scss +++ b/src/App.scss @@ -64,10 +64,10 @@ nav { #sidebar { grid-area: sidebar; +} - @media all and (max-width: 800px) { - display: none; - } +#notifs-column { + grid-area: notifs; } #main-scroller { @@ -177,6 +177,10 @@ nav { .underlay { display: none; } + + #sidebar { + display: none; + } } } diff --git a/src/App.vue b/src/App.vue index f87d895b..70084538 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,23 +9,21 @@ /> +
- +
= scrollHeight) { diff --git a/src/components/mobile_nav/mobile_nav.vue b/src/components/mobile_nav/mobile_nav.vue index 09680910..6c810bba 100644 --- a/src/components/mobile_nav/mobile_nav.vue +++ b/src/components/mobile_nav/mobile_nav.vue @@ -69,12 +69,9 @@
-
-
-
-
-
- {{ $t('notifications.notifications') }} - {{ unseenCount }} -
- - -
-
+ +
+
-
- +
+ {{ $t('notifications.notifications') }} + {{ unseenCount }} +
+ +
-
- + -- cgit v1.2.3-70-g09d2 From d3d219f15d4bac88f58d4fd0fed6f798b81cca82 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 7 Apr 2022 14:37:16 +0300 Subject: fix interactions page --- src/components/notifications/notifications.js | 3 +-- src/components/notifications/notifications.vue | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/components/notifications/notifications.vue') diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index 2bb8a1d1..fb2579a5 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -65,8 +65,7 @@ const Notifications = { }, noHeading () { const { layoutType } = this.$store.state.interface - console.log(layoutType) - return layoutType === 'mobile' + return this.minimalMode || layoutType === 'mobile' }, teleportTarget () { const { layoutType } = this.$store.state.interface diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index f50d3d38..bfc97dc0 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -1,5 +1,5 @@ diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index eeb6ea40..f779b823 100644 --- a/src/components/user_profile/user_profile.js +++ b/src/components/user_profile/user_profile.js @@ -39,7 +39,8 @@ const UserProfile = { return { error: false, userId: null, - tab: defaultTabKey + tab: defaultTabKey, + footerRef: null } }, created () { @@ -78,6 +79,9 @@ const UserProfile = { } }, methods: { + setFooterRef (el) { + this.footerRef = el + }, load (userNameOrId) { const startFetchingTimeline = (timeline, userId) => { // Clear timeline only if load another user's profile diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index 67966ff4..74d101c4 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -56,6 +56,7 @@ :user-id="userId" :pinned-status-ids="user.pinnedStatusIds" :in-profile="true" + :footerSlipgate="footerRef" />
+
Date: Sun, 22 May 2022 21:50:30 +0300 Subject: fix? --- src/components/notifications/notifications.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/notifications/notifications.vue') diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index d5b2d1d5..794ef51d 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -30,7 +30,7 @@ v-for="notification in notificationsToDisplay" :key="notification.id" class="notification" - :class="{"unseen": !minimalMode && !notification.seen}" + :class="{unseen: !minimalMode && !notification.seen}" >
-- cgit v1.2.3-70-g09d2 From 9b5fe24ca455af5420a326e78878ca7b35b5bf66 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 7 Jun 2022 16:52:03 +0300 Subject: restore notifications page, fix z-index issues --- src/App.vue | 2 +- src/boot/routes.js | 2 +- src/components/notifications/notifications.js | 4 +++- src/components/notifications/notifications.vue | 2 +- src/components/timeline/timeline.scss | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src/components/notifications/notifications.vue') diff --git a/src/App.vue b/src/App.vue index 5b448972..21f6f686 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,7 +9,7 @@ /> - +
{ { name: 'password-reset', path: '/password-reset', component: PasswordReset, props: true }, { name: 'registration-token', path: '/registration/:token', component: Registration }, { name: 'friend-requests', path: '/friend-requests', component: FollowRequests, beforeEnter: validateAuthenticatedRoute }, - { name: 'notifications', path: '/:username/notifications', component: Notifications, beforeEnter: validateAuthenticatedRoute }, + { name: 'notifications', path: '/:username/notifications', component: Notifications, props: () => ({ disableTeleport: true }), beforeEnter: validateAuthenticatedRoute }, { name: 'login', path: '/login', component: AuthForm }, { name: 'shout-panel', path: '/shout-panel', component: ShoutPanel, props: () => ({ floating: false }) }, { name: 'oauth-callback', path: '/oauth-callback', component: OAuthCallback, props: (route) => ({ code: route.query.code }) }, diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index fb2579a5..82aa1489 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -27,7 +27,9 @@ const Notifications = { // meant for "Interactions" timeline minimalMode: Boolean, // Custom filter mode, an array of strings, possible values 'mention', 'repeat', 'like', 'follow', used to override global filter for use in "Interactions" timeline - filterMode: Array + filterMode: Array, + // Disable teleporting (i.e. for /users/user/notifications) + disableTeleport: Boolean }, data () { return { diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index 794ef51d..b46c06aa 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -1,5 +1,5 @@