forked from AkkomaGang/akkoma-fe
Permit sidebar alignment with instance configuration option
This commit is contained in:
parent
7a0e554daf
commit
bc5005b3dd
4 changed files with 13 additions and 3 deletions
|
@ -99,7 +99,12 @@ export default {
|
||||||
},
|
},
|
||||||
showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel },
|
showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel },
|
||||||
isMobileLayout () { return this.$store.state.interface.mobileLayout },
|
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: {
|
methods: {
|
||||||
scrollToTop () {
|
scrollToTop () {
|
||||||
|
|
|
@ -80,7 +80,10 @@
|
||||||
id="content"
|
id="content"
|
||||||
class="container underlay"
|
class="container underlay"
|
||||||
>
|
>
|
||||||
<div class="sidebar-flexer mobile-hidden">
|
<div
|
||||||
|
class="sidebar-flexer mobile-hidden"
|
||||||
|
:style="sidebarAlign"
|
||||||
|
>
|
||||||
<div class="sidebar-bounds">
|
<div class="sidebar-bounds">
|
||||||
<div class="sidebar-scroller">
|
<div class="sidebar-scroller">
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
|
|
|
@ -36,6 +36,7 @@ const defaultState = {
|
||||||
showFeaturesPanel: true,
|
showFeaturesPanel: true,
|
||||||
minimalScopesMode: false,
|
minimalScopesMode: false,
|
||||||
greentext: false,
|
greentext: false,
|
||||||
|
sidebarRight: false,
|
||||||
|
|
||||||
// Nasty stuff
|
// Nasty stuff
|
||||||
pleromaBackend: true,
|
pleromaBackend: true,
|
||||||
|
|
|
@ -19,5 +19,6 @@
|
||||||
"noAttachmentLinks": false,
|
"noAttachmentLinks": false,
|
||||||
"nsfwCensorImage": "",
|
"nsfwCensorImage": "",
|
||||||
"showFeaturesPanel": true,
|
"showFeaturesPanel": true,
|
||||||
"minimalScopesMode": false
|
"minimalScopesMode": false,
|
||||||
|
"sidebarRight": false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue