made wide column layout optional
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
This commit is contained in:
parent
1b4df9e79d
commit
4abddf5e6a
7 changed files with 19 additions and 2 deletions
|
@ -59,7 +59,8 @@ export default {
|
||||||
{
|
{
|
||||||
'-reverse': this.reverseLayout,
|
'-reverse': this.reverseLayout,
|
||||||
'-no-sticky-headers': this.noSticky,
|
'-no-sticky-headers': this.noSticky,
|
||||||
'-has-new-post-button': this.newPostButtonShown
|
'-has-new-post-button': this.newPostButtonShown,
|
||||||
|
'-wide-timeline': this.widenTimeline
|
||||||
},
|
},
|
||||||
'-' + this.layoutType
|
'-' + this.layoutType
|
||||||
]
|
]
|
||||||
|
@ -93,6 +94,9 @@ export default {
|
||||||
newPostButtonShown () {
|
newPostButtonShown () {
|
||||||
return this.$store.getters.mergedConfig.alwaysShowNewPostButton || this.layoutType === 'mobile'
|
return this.$store.getters.mergedConfig.alwaysShowNewPostButton || this.layoutType === 'mobile'
|
||||||
},
|
},
|
||||||
|
widenTimeline () {
|
||||||
|
return this.$store.getters.mergedConfig.widenTimeline
|
||||||
|
},
|
||||||
showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel },
|
showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel },
|
||||||
editingAvailable () { return this.$store.state.instance.editingAvailable },
|
editingAvailable () { return this.$store.state.instance.editingAvailable },
|
||||||
layoutType () { return this.$store.state.interface.layoutType },
|
layoutType () { return this.$store.state.interface.layoutType },
|
||||||
|
|
|
@ -177,7 +177,7 @@ nav {
|
||||||
|
|
||||||
.app-layout {
|
.app-layout {
|
||||||
--miniColumn: 25rem;
|
--miniColumn: 25rem;
|
||||||
--maxiColumn: minmax(var(--miniColumn), 1fr);
|
--maxiColumn: minmax(var(--miniColumn), 45rem);
|
||||||
--columnGap: 1em;
|
--columnGap: 1em;
|
||||||
--status-margin: 0.75em;
|
--status-margin: 0.75em;
|
||||||
|
|
||||||
|
@ -195,6 +195,10 @@ nav {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
overflow-x: clip;
|
overflow-x: clip;
|
||||||
|
|
||||||
|
&.-wide-timeline {
|
||||||
|
--maxiColumn: minmax(var(--miniColumn), 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
.column {
|
.column {
|
||||||
--___columnMargin: var(--columnGap);
|
--___columnMargin: var(--columnGap);
|
||||||
|
|
||||||
|
|
|
@ -269,6 +269,11 @@
|
||||||
{{ $t('settings.right_sidebar') }}
|
{{ $t('settings.right_sidebar') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="widenTimeline">
|
||||||
|
{{ $t('settings.widen_timeline') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<ChoiceSetting
|
<ChoiceSetting
|
||||||
v-if="user"
|
v-if="user"
|
||||||
|
|
|
@ -934,6 +934,7 @@
|
||||||
"title": "Version"
|
"title": "Version"
|
||||||
},
|
},
|
||||||
"virtual_scrolling": "Anzeige der Zeitleiste optimieren",
|
"virtual_scrolling": "Anzeige der Zeitleiste optimieren",
|
||||||
|
"widen_timeline": "Zeitleiste verbreitern, um horizontalen Platz zu füllen",
|
||||||
"word_filter": "Wortfilter",
|
"word_filter": "Wortfilter",
|
||||||
"wordfilter": "Wortfilter"
|
"wordfilter": "Wortfilter"
|
||||||
},
|
},
|
||||||
|
|
|
@ -948,6 +948,7 @@
|
||||||
},
|
},
|
||||||
"virtual_scrolling": "Optimize timeline rendering",
|
"virtual_scrolling": "Optimize timeline rendering",
|
||||||
"use_blurhash": "Use blurhashes for NSFW thumbnails",
|
"use_blurhash": "Use blurhashes for NSFW thumbnails",
|
||||||
|
"widen_timeline": "Widen the Timeline to fill horizontal space",
|
||||||
"word_filter": "Word filter",
|
"word_filter": "Word filter",
|
||||||
"wordfilter": "Wordfilter"
|
"wordfilter": "Wordfilter"
|
||||||
},
|
},
|
||||||
|
|
|
@ -77,6 +77,7 @@ export const defaultState = {
|
||||||
hideScopeNotice: false,
|
hideScopeNotice: false,
|
||||||
useStreamingApi: false,
|
useStreamingApi: false,
|
||||||
sidebarRight: undefined, // instance default
|
sidebarRight: undefined, // instance default
|
||||||
|
widenTimeline: undefined, // instance default
|
||||||
subjectLineBehavior: undefined, // instance default
|
subjectLineBehavior: undefined, // instance default
|
||||||
alwaysShowSubjectInput: undefined, // instance default
|
alwaysShowSubjectInput: undefined, // instance default
|
||||||
postContentType: undefined, // instance default
|
postContentType: undefined, // instance default
|
||||||
|
|
|
@ -61,6 +61,7 @@ const defaultState = {
|
||||||
showNavShortcuts: true,
|
showNavShortcuts: true,
|
||||||
showWiderShortcuts: true,
|
showWiderShortcuts: true,
|
||||||
sidebarRight: false,
|
sidebarRight: false,
|
||||||
|
widenTimeline: true,
|
||||||
subjectLineBehavior: 'email',
|
subjectLineBehavior: 'email',
|
||||||
theme: 'pleroma-dark',
|
theme: 'pleroma-dark',
|
||||||
virtualScrolling: true,
|
virtualScrolling: true,
|
||||||
|
|
Loading…
Reference in a new issue