Merge branch 'threecolumn' into shigusegubu-vue3
* threecolumn: options to enable scrollbars and disable sticky headers fix interactions page
This commit is contained in:
commit
e86d8f07bc
9 changed files with 44 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<teleport :to="teleportTarget">
|
||||
<teleport :disabled="minimalMode" :to="teleportTarget">
|
||||
<div
|
||||
:class="{ minimal: minimalMode }"
|
||||
class="Notifications"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue