Permit sidebar alignment with instance configuration option

このコミットが含まれているのは:
Mark Felder 2020-05-12 13:59:52 -05:00
コミット bc5005b3dd
4個のファイルの変更13行の追加3行の削除

ファイルの表示

@ -99,7 +99,12 @@ export default {
},
showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel },
isMobileLayout () { return this.$store.state.interface.mobileLayout },
privateMode () { return this.$store.state.instance.private }
privateMode () { return this.$store.state.instance.private },
sidebarAlign () {
return {
'order': this.$store.state.instance.sidebarRight ? 99 : 0
}
}
},
methods: {
scrollToTop () {

ファイルの表示

@ -80,7 +80,10 @@
id="content"
class="container underlay"
>
<div class="sidebar-flexer mobile-hidden">
<div
class="sidebar-flexer mobile-hidden"
:style="sidebarAlign"
>
<div class="sidebar-bounds">
<div class="sidebar-scroller">
<div class="sidebar">

ファイルの表示

@ -36,6 +36,7 @@ const defaultState = {
showFeaturesPanel: true,
minimalScopesMode: false,
greentext: false,
sidebarRight: false,
// Nasty stuff
pleromaBackend: true,

ファイルの表示

@ -19,5 +19,6 @@
"noAttachmentLinks": false,
"nsfwCensorImage": "",
"showFeaturesPanel": true,
"minimalScopesMode": false
"minimalScopesMode": false,
"sidebarRight": false
}