From a46c02ecf5298a60b2f39d4bc2bf0a2630e04fbc Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Fri, 19 Nov 2021 16:31:08 -0600 Subject: [PATCH] add neko's changes --- src/App.js | 5 +++++ src/App.vue | 2 +- src/components/attachment/attachment.vue | 2 +- src/components/desktop_nav/desktop_nav.js | 7 ++++++- src/components/desktop_nav/desktop_nav.vue | 5 ++++- src/components/nav_panel/nav_panel.vue | 4 +--- src/components/settings_modal/tabs/general_tab.vue | 5 +++++ src/components/status_content/status_content.vue | 2 +- src/i18n/en.json | 1 + src/modules/config.js | 1 + 10 files changed, 26 insertions(+), 8 deletions(-) diff --git a/src/App.js b/src/App.js index 3e09ed4c..7efb1f91 100644 --- a/src/App.js +++ b/src/App.js @@ -89,6 +89,11 @@ export default { 'order': this.$store.getters.mergedConfig.sidebarRight ? 99 : 0 } }, + fullscreenView () { + return { + 'max-width': this.$store.getters.mergedConfig.fullscreenView ? 'initial' : null + } + }, thirdColumnAlign () { return { 'order': this.$store.getters.mergedConfig.sidebarRight ? 0 : 99 diff --git a/src/App.vue b/src/App.vue index 6955a4bc..9c6ae909 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,7 +12,7 @@
-
+
+
  • + + {{ $t('settings.fullscreenView') }} + +
  • {{ $t('settings.hide_wallpaper') }} diff --git a/src/components/status_content/status_content.vue b/src/components/status_content/status_content.vue index 2dbda64a..464ce365 100644 --- a/src/components/status_content/status_content.vue +++ b/src/components/status_content/status_content.vue @@ -119,7 +119,7 @@ $status-margin: 0.75em; img, video { max-width: 100%; - max-height: 400px; + // max-height: 400px; vertical-align: middle; object-fit: contain; diff --git a/src/i18n/en.json b/src/i18n/en.json index b1fede70..bea665bb 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -374,6 +374,7 @@ "instance_default": "(default: {value})", "instance_default_simple": "(default)", "interface": "Interface", + "fullscreenView": "Fullscreen view", "interfaceLanguage": "Interface language", "invalid_theme_imported": "The selected file is not a supported Pleroma theme. No changes to your theme were made.", "limited_availability": "Unavailable in your browser", diff --git a/src/modules/config.js b/src/modules/config.js index 6bfd6fc6..c5bfc2bf 100644 --- a/src/modules/config.js +++ b/src/modules/config.js @@ -38,6 +38,7 @@ export const defaultState = { preloadImage: true, loopVideo: true, loopVideoSilentOnly: true, + fullscreenView: false, streaming: false, emojiReactionsOnTimeline: true, alwaysShowNewPostButton: false,