diff --git a/changelog.d/settings-shuffle.change b/changelog.d/settings-shuffle.change deleted file mode 100644 index f1d9ecf89..000000000 --- a/changelog.d/settings-shuffle.change +++ /dev/null @@ -1,3 +0,0 @@ -rearranged and split settings to make more sense and be less of a wall of text -on mobile settings now take up full width and presented in navigation style -improved styles for settings diff --git a/src/components/settings_modal/settings_modal.scss b/src/components/settings_modal/settings_modal.scss index 78698803e..a1e3ec412 100644 --- a/src/components/settings_modal/settings_modal.scss +++ b/src/components/settings_modal/settings_modal.scss @@ -50,11 +50,9 @@ } &.two-column { - display: grid; - grid-template-columns: 1fr 1fr; + column-count: 2; > li { - margin: 0; break-inside: avoid; } } @@ -108,13 +106,11 @@ &.-mobile { .tabs { .menu-item { - font-size: 1.2em; - padding-top: 0.75em; - padding-bottom: 0.75em; + font-size: 1.2em } } - .setting-list:not(.suboptions), + .setting-list, .option-list { padding-left: 0.25em; @@ -125,7 +121,7 @@ } &.two-column { - grid-template-columns: 1fr; + column-count: 1; } } } diff --git a/src/components/settings_modal/settings_modal_admin_content.js b/src/components/settings_modal/settings_modal_admin_content.js index bc0039118..fa6b7f8ad 100644 --- a/src/components/settings_modal/settings_modal_admin_content.js +++ b/src/components/settings_modal/settings_modal_admin_content.js @@ -1,4 +1,4 @@ -import VerticalTabSwitcher from './helpers/vertical_tab_switcher.jsx' +import VerticalTabSwitcher from 'src/components/tab_switcher/vertical_tab_switcher.jsx' import InstanceTab from './admin_tabs/instance_tab.vue' import LimitsTab from './admin_tabs/limits_tab.vue' diff --git a/src/components/settings_modal/settings_modal_user_content.js b/src/components/settings_modal/settings_modal_user_content.js index d3a66aedb..18e1148dc 100644 --- a/src/components/settings_modal/settings_modal_user_content.js +++ b/src/components/settings_modal/settings_modal_user_content.js @@ -1,4 +1,4 @@ -import VerticalTabSwitcher from './helpers/vertical_tab_switcher.jsx' +import VerticalTabSwitcher from 'src/components/tab_switcher/vertical_tab_switcher.jsx' import DataImportExportTab from './tabs/data_import_export_tab.vue' import MutesAndBlocksTab from './tabs/mutes_and_blocks_tab.vue' diff --git a/src/components/settings_modal/settings_modal_user_content.scss b/src/components/settings_modal/settings_modal_user_content.scss index 306d8e898..5deca7868 100644 --- a/src/components/settings_modal/settings_modal_user_content.scss +++ b/src/components/settings_modal/settings_modal_user_content.scss @@ -1,11 +1,8 @@ .settings_tab-switcher { height: 100%; - [full-height="true"] { - height: 100% - } - .setting-item { + border-bottom: 2px solid var(--border); margin: 1em 1em 1.4em; padding-bottom: 1.4em; diff --git a/src/components/settings_modal/settings_modal_user_content.vue b/src/components/settings_modal/settings_modal_user_content.vue index b2b291e9b..6709b6e02 100644 --- a/src/components/settings_modal/settings_modal_user_content.vue +++ b/src/components/settings_modal/settings_modal_user_content.vue @@ -80,7 +80,6 @@ icon="eye-slash" data-tab-name="mutesAndBlocks" :full-width="true" - :full-height="true" > @@ -96,6 +95,7 @@ :label="$t('settings.security_tab')" icon="lock" data-tab-name="security" + :full-width="true" > diff --git a/src/components/settings_modal/tabs/appearance_tab.js b/src/components/settings_modal/tabs/appearance_tab.js index 371d40012..3bb5ec508 100644 --- a/src/components/settings_modal/tabs/appearance_tab.js +++ b/src/components/settings_modal/tabs/appearance_tab.js @@ -1,3 +1,5 @@ +import VerticalTabSwitcher from 'src/components/tab_switcher/vertical_tab_switcher.jsx' + import BooleanSetting from '../helpers/boolean_setting.vue' import ChoiceSetting from '../helpers/choice_setting.vue' import IntegerSetting from '../helpers/integer_setting.vue' @@ -86,7 +88,8 @@ const AppearanceTab = { UnitSetting, ProfileSettingIndicator, Preview, - PaletteEditor + PaletteEditor, + VerticalTabSwitcher }, mounted () { useInterfaceStore().getThemeData() diff --git a/src/components/settings_modal/tabs/composing_tab.vue b/src/components/settings_modal/tabs/composing_tab.vue index 507ac5c79..a48e6928e 100644 --- a/src/components/settings_modal/tabs/composing_tab.vue +++ b/src/components/settings_modal/tabs/composing_tab.vue @@ -13,8 +13,7 @@ :user-default="$store.state.profileConfig.defaultScope" :initial-scope="$store.state.profileConfig.defaultScope" :on-scope-change="changeDefaultScope" - :unstyled="false" - uns + :unstyled="false"uns /> @@ -83,9 +82,7 @@ -

- {{ $t('settings.attachments') }} -

+

{{ $t('settings.attachments') }}

  • {{ $t('settings.image_compression') }} -
      -
    • - - {{ $t('settings.always_use_jpeg') }} - -
    • -
  • +
      +
    • + + {{ $t('settings.always_use_jpeg') }} + +
    • +
diff --git a/src/components/settings_modal/tabs/developer_tab.js b/src/components/settings_modal/tabs/developer_tab.js index f8f21e9f4..e9978884e 100644 --- a/src/components/settings_modal/tabs/developer_tab.js +++ b/src/components/settings_modal/tabs/developer_tab.js @@ -23,23 +23,6 @@ const VersionTab = { return pleromaFeCommitUrl + this.frontendVersion }, ...SharedComputedObject(), - }, - methods: { - clearAssetCache () { - this.clearCache(cacheKey) - }, - clearEmojiCache () { - this.clearCache(emojiCacheKey) - }, - clearCache (key) { - clearCache(key) - .then(() => { - this.$store.dispatch('settingsSaved', { success: true }) - }) - .catch(error => { - this.$store.dispatch('settingsSaved', { error }) - }) - } } } diff --git a/src/components/settings_modal/tabs/developer_tab.vue b/src/components/settings_modal/tabs/developer_tab.vue index aafa4ec17..6b4480db7 100644 --- a/src/components/settings_modal/tabs/developer_tab.vue +++ b/src/components/settings_modal/tabs/developer_tab.vue @@ -4,7 +4,7 @@ class="developer-tab" >
-

{{ $t('settings.version.title') }}

+

{{ $t('settings.version.title')}}

{{ $t('settings.version.backend_version') }}
@@ -20,12 +20,12 @@ + > {{ frontendVersion }}
-

{{ $t('settings.debug') }}

+

{{ $t('settings.debug')}}

  • diff --git a/src/components/settings_modal/tabs/general_tab.js b/src/components/settings_modal/tabs/general_tab.js index 4d3b01c46..60f67ccc4 100644 --- a/src/components/settings_modal/tabs/general_tab.js +++ b/src/components/settings_modal/tabs/general_tab.js @@ -7,10 +7,12 @@ import FloatSetting from '../helpers/float_setting.vue' import InterfaceLanguageSwitcher from 'src/components/interface_language_switcher/interface_language_switcher.vue' import ProfileSettingIndicator from '../helpers/profile_setting_indicator.vue' import FontControl from 'src/components/font_control/font_control.vue' +import { defaultHorizontalUnits } from '../helpers/unit_setting.js' import SharedComputedObject from '../helpers/shared_computed_object.js' import localeService from 'src/services/locale/locale.service.js' +import { clearCache, cacheKey, emojiCacheKey } from 'src/services/sw/sw.js' const GeneralTab = { props: { diff --git a/src/components/settings_modal/tabs/general_tab.vue b/src/components/settings_modal/tabs/general_tab.vue index 2796c9a95..4c36c8d58 100644 --- a/src/components/settings_modal/tabs/general_tab.vue +++ b/src/components/settings_modal/tabs/general_tab.vue @@ -136,13 +136,8 @@
-

- {{ $t('settings.confirmations') }} -

-
    +

    {{ $t('settings.confirmations') }}

    +
    • {{ $t('settings.confirm_dialogs') }}
        diff --git a/src/components/settings_modal/tabs/layout_tab.vue b/src/components/settings_modal/tabs/layout_tab.vue index 999040d9d..d4a7e757a 100644 --- a/src/components/settings_modal/tabs/layout_tab.vue +++ b/src/components/settings_modal/tabs/layout_tab.vue @@ -24,6 +24,16 @@ {{ $t('settings.autohide_floating_post_button') }} +
      • + + {{ $t('settings.disable_sticky_headers') }} + +
      • +
      • + + {{ $t('settings.show_scrollbars') }} + +
      • +
      +

      {{ $t('settings.columns') }}

      +
      • -
      -

      {{ $t('settings.columns') }}

      -
        -
      • - - {{ $t('settings.disable_sticky_headers') }} - -
      • -
      • - - {{ $t('settings.show_scrollbars') }} - -
      • {{ $t('settings.hide_isp') }} @@ -109,7 +109,7 @@
      • -

        {{ $t('settings.column_sizes') }}

        + {{ $t('settings.column_sizes') }}
        -

        {{ $t('settings.notification_setting_annoyance') }}

        +

        {{ $t('settings.notification_setting_annoyance') }}

        • @@ -29,7 +29,7 @@
        -

        {{ $t('settings.notification_setting_filters') }}

        +

        {{ $t('settings.notification_setting_filters') }}

        • -

          {{ $t('settings.notification_visibility') }}

          +

          {{ $t('settings.notification_visibility') }}

          {{ $t('settings.notification_setting_filters_chrome_push') }}

          • -
            {{ $t('settings.notification_visibility_mentions') }}
            +

            {{ $t('settings.notification_visibility_mentions') }}

            • @@ -61,7 +61,7 @@
          • -
            {{ $t('settings.notification_visibility_statuses') }}
            +

            {{ $t('settings.notification_visibility_statuses') }}

            • @@ -76,7 +76,7 @@
          • -
            {{ $t('settings.notification_visibility_likes') }}
            +

            {{ $t('settings.notification_visibility_likes') }}

            • @@ -91,7 +91,7 @@
          • -
            {{ $t('settings.notification_visibility_repeats') }}
            +

            {{ $t('settings.notification_visibility_repeats') }}

            • @@ -106,7 +106,7 @@
          • -
            {{ $t('settings.notification_visibility_emoji_reactions') }}
            +

            {{ $t('settings.notification_visibility_emoji_reactions') }}

            • @@ -121,7 +121,7 @@
          • -
            {{ $t('settings.notification_visibility_follows') }}
            +

            {{ $t('settings.notification_visibility_follows') }}

            • @@ -136,7 +136,7 @@
          • -
            {{ $t('settings.notification_visibility_follow_requests') }}
            +

            {{ $t('settings.notification_visibility_follow_requests') }}

            • @@ -151,7 +151,7 @@
          • -
            {{ $t('settings.notification_visibility_moves') }}
            +

            {{ $t('settings.notification_visibility_moves') }}

            • @@ -166,7 +166,7 @@
          • -
            {{ $t('settings.notification_visibility_polls') }}
            +

            {{ $t('settings.notification_visibility_polls') }}

            • @@ -181,7 +181,7 @@
          • -
            {{ $t('settings.notification_visibility_reports') }}
            +

            {{ $t('settings.notification_visibility_reports') }}

            • @@ -201,6 +201,8 @@ {{ $t('settings.notification_show_extra') }} +
            • +
              • -

                {{ $t('settings.notification_setting_privacy') }}

                +

                {{ $t('settings.notification_setting_privacy') }}

                • {{ $t('settings.conversation_display') }} -
                    -
                  • - - {{ $t('settings.tree_advanced') }} - -
                  • -
                  • - - {{ $t('settings.tree_fade_ancestors') }} - -
                  • -
                  • - - {{ $t('settings.max_depth_in_thread') }} - -
                  • -
                  • - - {{ $t('settings.conversation_other_replies_button') }} - -
                  • -
                • +
                    +
                  • + + {{ $t('settings.tree_advanced') }} + +
                  • +
                  • + + {{ $t('settings.tree_fade_ancestors') }} + +
                  • +
                  • + + {{ $t('settings.max_depth_in_thread') }} + +
                  • +
                  • + + {{ $t('settings.conversation_other_replies_button') }} + +
                  • +
                • {{ $t('settings.mention_link_display') }} -
                    -
                  • - - {{ $t('settings.mention_link_fade_domain') }} - -
                  • -
                • +
                • + + {{ $t('settings.mention_link_fade_domain') }} + +
                • {{ $t('settings.no_rich_text_description') }} -
                    -
                  • - - {{ $t('settings.absolute_time_format_min_age') }} - -
                  • -
                • +
                    +
                  • + + {{ $t('settings.absolute_time_format_min_age') }} + +
                  • +

                {{ $t('settings.attachments') }}

                  @@ -172,27 +170,27 @@ {{ $t('settings.nsfw_clickthrough') }} -
                    -
                  • - - {{ $t('settings.preload_images') }} - -
                  • -
                  • - - {{ $t('settings.use_one_click_nsfw') }} - -
                  • -
                  +
                    +
                  • + + {{ $t('settings.preload_images') }} + +
                  • +
                  • + + {{ $t('settings.use_one_click_nsfw') }} + +
                  • +
                • -

                  {{ $t('settings.change_email') }}

                  -
                    -
                  • -

                    {{ $t('settings.new_email') }}

                    - -
                  • -
                  • -

                    {{ $t('settings.current_password') }}

                    - -
                  • -
                  • - -
                  • -
                  • -

                    - {{ $t('settings.changed_email') }} -

                    - -
                  • -
                  +

                  {{ $t('settings.change_email') }}

                  +
                  +

                  {{ $t('settings.new_email') }}

                  + +
                  +
                  +

                  {{ $t('settings.current_password') }}

                  + +
                  + +

                  + {{ $t('settings.changed_email') }} +

                  +
                  -

                  {{ $t('settings.change_password') }}

                  -
                    -
                  • -

                    {{ $t('settings.current_password') }}

                    - -
                  • -
                  • -

                    {{ $t('settings.new_password') }}

                    - -
                  • -
                  • -

                    {{ $t('settings.confirm_new_password') }}

                    - -
                  • -
                  • - -
                  • -
                  • -

                    - {{ $t('settings.changed_password') }} -

                    -

                    - {{ $t('settings.change_password_error') }} -

                    -

                    - {{ changePasswordError }} -

                    -
                  • -
                  +

                  {{ $t('settings.change_password') }}

                  +
                  +

                  {{ $t('settings.current_password') }}

                  + +
                  +
                  +

                  {{ $t('settings.new_password') }}

                  + +
                  +
                  +

                  {{ $t('settings.confirm_new_password') }}

                  + +
                  + +

                  + {{ $t('settings.changed_password') }} +

                  +

                  + {{ $t('settings.change_password_error') }} +

                  +

                  + {{ changePasswordError }} +

                  -

                  {{ $t('settings.account_alias') }}

                  +

                  {{ $t('settings.oauth_tokens') }}

                  + + + + + + + + + + + + + + +
                  {{ $t('settings.app_name') }}{{ $t('settings.valid_until') }} +
                  {{ oauthToken.appName }}{{ oauthToken.validUntil }} + +
                  +
                  + + +
                  +

                  {{ $t('settings.account_alias') }}

                  @@ -159,40 +178,8 @@ -
                  -

                  {{ $t('settings.oauth_tokens') }}

                  -
                  - - - - - - - - - - - - - -
                  {{ $t('settings.app_name') }}{{ $t('settings.valid_until') }} -
                  {{ oauthToken.appName }}{{ oauthToken.validUntil }} - -
                  -
                  - - -
                  -

                  {{ $t('settings.move_account') }}

                  +

                  {{ $t('settings.move_account') }}

                  {{ $t('settings.move_account_notes') }}

                  -

                  {{ $t('settings.delete_account') }}

                  +

                  {{ $t('settings.delete_account') }}

                  {{ $t('settings.delete_account_description') }}

                  diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 8c78fddc1..91caa6a8c 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -139,34 +139,32 @@ class="status-heading" >
                  -
                  +

                  - + +

                  -

                  - {{ status.user.name }} -

                  -