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') 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') 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') 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 @@ @@ -106,17 +106,13 @@ export default { .NotificationFilters { align-self: stretch; - > button { + .filter-trigger-button { font-size: 1.2em; padding-left: 0.7em; padding-right: 0.2em; line-height: 100%; height: 100%; } - - .dropdown-item { - margin: 0; - } } diff --git a/src/components/popover/popover.vue b/src/components/popover/popover.vue index e1eb2c21..044b887d 100644 --- a/src/components/popover/popover.vue +++ b/src/components/popover/popover.vue @@ -95,7 +95,7 @@ line-height: 21px; overflow: auto; display: block; - padding: .5em 0.75em; + padding: 0.25em 0.75em; clear: both; font-weight: 400; text-align: inherit; diff --git a/src/panel.scss b/src/panel.scss index f3e51d39..147b17a9 100644 --- a/src/panel.scss +++ b/src/panel.scss @@ -110,8 +110,8 @@ overflow-x: hidden; } - .button-default, - .alert { + > .button-default, + > .alert { height: var(--__panel-heading-height-inner); min-height: 0; box-sizing: border-box; @@ -122,7 +122,7 @@ padding-bottom: 0; } - .button-default { + > .button-default { flex-shrink: 0; &, -- cgit v1.2.3-70-g09d2 From 85c515b3952d819b4bb983426ac562c4c00a193d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 20 Apr 2022 19:57:01 +0300 Subject: more fixes for timeline headers --- src/components/notifications/notification_filters.vue | 11 +++++++---- src/components/popover/popover.vue | 2 +- src/components/timeline/timeline.vue | 2 +- src/components/timeline/timeline_quick_settings.vue | 9 ++++++--- 4 files changed, 15 insertions(+), 9 deletions(-) (limited to 'src/components/notifications') diff --git a/src/components/notifications/notification_filters.vue b/src/components/notifications/notification_filters.vue index 7418fc7c..d0b11a13 100644 --- a/src/components/notifications/notification_filters.vue +++ b/src/components/notifications/notification_filters.vue @@ -106,12 +106,15 @@ export default { .NotificationFilters { align-self: stretch; - .filter-trigger-button { - font-size: 1.2em; - padding-left: 0.7em; - padding-right: 0.2em; + > button { line-height: 100%; height: 100%; + width: var(--__panel-heading-height-inner); + text-align: center; + + svg { + font-size: 1.2em; + } } } diff --git a/src/components/popover/popover.vue b/src/components/popover/popover.vue index 0350daa1..d98ca8e7 100644 --- a/src/components/popover/popover.vue +++ b/src/components/popover/popover.vue @@ -5,7 +5,7 @@ >
-