diff options
| author | Mark Felder <feld@FreeBSD.org> | 2020-05-12 13:59:52 -0500 |
|---|---|---|
| committer | Mark Felder <feld@FreeBSD.org> | 2020-05-12 13:59:52 -0500 |
| commit | bc5005b3ddddeb47d5160a1b79d2edb39e887b4b (patch) | |
| tree | 98770d51dd4dc12024a50e0521e6c8b328442488 | |
| parent | 7a0e554daf843fe9e98053e79ec0114c380ededb (diff) | |
Permit sidebar alignment with instance configuration option
| -rw-r--r-- | src/App.js | 7 | ||||
| -rw-r--r-- | src/App.vue | 5 | ||||
| -rw-r--r-- | src/modules/instance.js | 1 | ||||
| -rw-r--r-- | static/config.json | 3 |
4 files changed, 13 insertions, 3 deletions
@@ -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 () { diff --git a/src/App.vue b/src/App.vue index ff62fc51..7018a5a4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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"> diff --git a/src/modules/instance.js b/src/modules/instance.js index ffece311..869ceebd 100644 --- a/src/modules/instance.js +++ b/src/modules/instance.js @@ -36,6 +36,7 @@ const defaultState = { showFeaturesPanel: true, minimalScopesMode: false, greentext: false, + sidebarRight: false, // Nasty stuff pleromaBackend: true, diff --git a/static/config.json b/static/config.json index c8267869..a87ed853 100644 --- a/static/config.json +++ b/static/config.json @@ -19,5 +19,6 @@ "noAttachmentLinks": false, "nsfwCensorImage": "", "showFeaturesPanel": true, - "minimalScopesMode": false + "minimalScopesMode": false, + "sidebarRight": false } |
