Merge branch 'threecolumn' into shigusegubu-vue3

* threecolumn:
  options to enable scrollbars and disable sticky headers
  fix interactions page
This commit is contained in:
Henry Jameson 2022-04-07 15:12:00 +03:00
commit e86d8f07bc
9 changed files with 44 additions and 13 deletions

View file

@ -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

View file

@ -1,5 +1,5 @@
<template>
<teleport :to="teleportTarget">
<teleport :disabled="minimalMode" :to="teleportTarget">
<div
:class="{ minimal: minimalMode }"
class="Notifications"

View file

@ -60,6 +60,16 @@
{{ $t('settings.virtual_scrolling') }}
</BooleanSetting>
</li>
<li>
<BooleanSetting path="disableStickyHeaders">
{{ $t('settings.disable_sticky_headers') }}
</BooleanSetting>
</li>
<li>
<BooleanSetting path="showScrollbars">
{{ $t('settings.show_scrollbars') }}
</BooleanSetting>
</li>
<li>
<BooleanSetting
path="alwaysShowNewPostButton"

View file

@ -91,7 +91,7 @@ const Timeline = {
const credentials = store.state.users.currentUser.credentials
const showImmediately = this.timeline.visibleStatuses.length === 0
scroller().addEventListener('scroll', this.handleScroll)
scroller() && scroller().addEventListener('scroll', this.handleScroll)
if (store.state.api.fetchers[this.timelineName]) { return false }