diff --git a/changelog.d/minor.add b/changelog.d/minor.add index 5f4934173..ef0e45898 100644 --- a/changelog.d/minor.add +++ b/changelog.d/minor.add @@ -3,4 +3,3 @@ option to remove forced aspect ratio for user profiles (requested) showing user tags (mrf policies for user + custom if present) version information now is also in about page mention autosuggest now sorts by recent activity -non-square emoji support (toggleable by user) diff --git a/src/App.js b/src/App.js index 9fb4d32e5..487090565 100644 --- a/src/App.js +++ b/src/App.js @@ -67,11 +67,6 @@ export default { data: () => ({ mobileActivePanel: 'timeline', }), - provide() { - return { - allowNonSquareEmoji: useMergedConfigStore().mergedConfig.nonSquareEmoji, - } - }, watch: { themeApplied() { this.removeSplash() diff --git a/src/components/basic_user_card/basic_user_card.js b/src/components/basic_user_card/basic_user_card.js index 849e35090..0e45b140a 100644 --- a/src/components/basic_user_card/basic_user_card.js +++ b/src/components/basic_user_card/basic_user_card.js @@ -24,11 +24,6 @@ const BasicUserCard = { ) }, }, - computed: { - allowNonSquareEmoji() { - return useMergedConfigStore().mergedConfig.nonSquareEmoji - }, - } } export default BasicUserCard diff --git a/src/components/basic_user_card/basic_user_card.vue b/src/components/basic_user_card/basic_user_card.vue index 572b07abb..29a60cd1e 100644 --- a/src/components/basic_user_card/basic_user_card.vue +++ b/src/components/basic_user_card/basic_user_card.vue @@ -27,7 +27,6 @@ class="basic-user-card-user-name-value" :html="user.name" :emoji="user.emoji" - :allow-non-square-emoji="allowNonSquareEmoji" />
diff --git a/src/components/chat_title/chat_title.js b/src/components/chat_title/chat_title.js index 7ec4c81f1..3447f5163 100644 --- a/src/components/chat_title/chat_title.js +++ b/src/components/chat_title/chat_title.js @@ -20,8 +20,5 @@ export default { htmlTitle() { return this.user ? this.user.name_html : '' }, - allowNonSquareEmoji() { - return useMergedConfigStore().mergedConfig.nonSquareEmoji - }, }, } diff --git a/src/components/chat_title/chat_title.vue b/src/components/chat_title/chat_title.vue index 313e66ce3..00521260f 100644 --- a/src/components/chat_title/chat_title.vue +++ b/src/components/chat_title/chat_title.vue @@ -19,7 +19,6 @@ :title="'@'+(user && user.screen_name_ui)" :html="htmlTitle" :emoji="user.emoji || []" - :allow-non-square-emoji="allowNonSquareEmoji" :is-local="user.is_local" />
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js index fc4ffc518..52579a413 100644 --- a/src/components/notification/notification.js +++ b/src/components/notification/notification.js @@ -210,9 +210,6 @@ const Notification = { mergedConfig() { return useMergedConfigStore().mergedConfig }, - allowNonSquareEmoji() { - return this.mergedConfig.nonSquareEmoji - }, shouldConfirmApprove() { return this.mergedConfig.modalOnApproveFollow }, diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue index d0accc389..8d5db1374 100644 --- a/src/components/notification/notification.vue +++ b/src/components/notification/notification.vue @@ -71,7 +71,6 @@ :title="'@'+notification.from_profile.screen_name_ui" :html="notification.from_profile.name_html" :emoji="notification.from_profile.emoji" - :allow-non-square-emoji="allowNonSquareEmoji" :is-local="notification.from_profile.is_local" /> diff --git a/src/components/poll/poll.js b/src/components/poll/poll.js index 5033726f3..945b8b372 100644 --- a/src/components/poll/poll.js +++ b/src/components/poll/poll.js @@ -55,9 +55,6 @@ export default { return this.expired ? 'polls.expired' : 'polls.expires_in' } }, - allowNonSquareEmoji() { - return useMergedConfigStore().mergedConfig.nonSquareEmoji - }, loggedIn() { return this.$store.state.users.currentUser }, diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue index 9ac859824..24de14200 100644 --- a/src/components/poll/poll.vue +++ b/src/components/poll/poll.vue @@ -24,7 +24,6 @@ :html="option.title_html" :handle-links="false" :emoji="emoji" - :allow-non-square-emoji="allowNonSquareEmoji" />
rerender -> emit -> update up the tree -> rerender -> ... // at least until vue3? const result = ( - + {this.collapse ? pass2.map((x) => { if (!Array.isArray(x)) return x.replace(/\n/g, ' ') diff --git a/src/components/rich_content/rich_content.scss b/src/components/rich_content/rich_content.scss index 33effc623..d2ec77dcb 100644 --- a/src/components/rich_content/rich_content.scss +++ b/src/components/rich_content/rich_content.scss @@ -77,14 +77,6 @@ height: var(--emoji-size, 32px); } - &.-allow-non-square-emoji { - .emoji { - width: auto; - max-width: calc(var(--emoji-size, 32px) * 3); - min-width: var(--emoji-size, 32px); - } - } - .img, video { max-width: 100%; diff --git a/src/components/settings_modal/tabs/posts_tab.vue b/src/components/settings_modal/tabs/posts_tab.vue index fc33d5476..1e684246d 100644 --- a/src/components/settings_modal/tabs/posts_tab.vue +++ b/src/components/settings_modal/tabs/posts_tab.vue @@ -169,11 +169,6 @@ {{ $t('settings.stop_gifs') }} -
  • - - {{ $t('settings.non_square_emoji') }} - -
  • @@ -154,7 +153,6 @@ diff --git a/src/components/status_body/status_body.js b/src/components/status_body/status_body.js index 1b7d26403..5250acb9f 100644 --- a/src/components/status_body/status_body.js +++ b/src/components/status_body/status_body.js @@ -43,9 +43,6 @@ const StatusBody = { localCollapseSubjectDefault() { return this.mergedConfig.collapseMessageWithSubject }, - allowNonSquareEmoji() { - return this.mergedConfig.nonSquareEmoji - }, // This is a bit hacky, but we want to approximate post height before rendering // so we count newlines (masto uses

    for paragraphs, GS uses
    between them) // as well as approximate line count by counting characters and approximating ~80 diff --git a/src/components/status_body/status_body.vue b/src/components/status_body/status_body.vue index f724f2413..677781d97 100644 --- a/src/components/status_body/status_body.vue +++ b/src/components/status_body/status_body.vue @@ -15,7 +15,6 @@ :html="status.summary_raw_html" :emoji="status.emojis" :is-local="status.isLocal" - :allow-non-square-emoji="allowNonSquareEmoji" />