From 78e22601a658828584479ffbb88a96201981c70d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KMY=EF=BC=88=E9=9B=AA=E3=81=82=E3=81=99=E3=81=8B=EF=BC=89?= Date: Fri, 27 Oct 2023 19:40:43 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=E3=82=A2=E3=82=A4=E3=82=B3=E3=83=B3?= =?UTF-8?q?=E3=81=AE=E3=82=A8=E3=83=A9=E3=83=BC=E3=80=81=E4=B8=80=E9=83=A8?= =?UTF-8?q?=E5=85=AC=E9=96=8B=E7=AF=84=E5=9B=B2=E3=81=8C=E9=81=B8=E6=8A=9E?= =?UTF-8?q?=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=80=81?= =?UTF-8?q?=E3=82=B5=E3=83=BC=E3=82=AF=E3=83=AB=E3=82=A2=E3=82=A4=E3=82=B3?= =?UTF-8?q?=E3=83=B3=E5=A4=89=E6=9B=B4=20(#190)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/javascript/mastodon/features/circles/index.jsx | 3 ++- .../compose/components/privacy_dropdown.jsx | 13 +++++++------ .../mastodon/features/getting_started/index.jsx | 4 ++-- .../mastodon/features/list_timeline/index.jsx | 2 +- .../mastodon/features/onboarding/index.jsx | 11 +++++++---- .../features/ui/components/navigation_panel.jsx | 4 ++-- 6 files changed, 21 insertions(+), 16 deletions(-) diff --git a/app/javascript/mastodon/features/circles/index.jsx b/app/javascript/mastodon/features/circles/index.jsx index 4dc5ae41b9..9ee5343dc3 100644 --- a/app/javascript/mastodon/features/circles/index.jsx +++ b/app/javascript/mastodon/features/circles/index.jsx @@ -9,6 +9,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; +import { ReactComponent as CirclesIcon } from '@material-symbols/svg-600/outlined/account_circle-fill.svg'; import { ReactComponent as CircleIcon } from '@material-symbols/svg-600/outlined/account_circle.svg'; import { fetchCircles, deleteCircle } from 'mastodon/actions/circles'; @@ -96,7 +97,7 @@ class Circles extends ImmutablePureComponent { return ( - + diff --git a/app/javascript/mastodon/features/compose/components/privacy_dropdown.jsx b/app/javascript/mastodon/features/compose/components/privacy_dropdown.jsx index 38e5e69b24..4cd898f2aa 100644 --- a/app/javascript/mastodon/features/compose/components/privacy_dropdown.jsx +++ b/app/javascript/mastodon/features/compose/components/privacy_dropdown.jsx @@ -249,6 +249,13 @@ class PrivacyDropdown extends PureComponent { { icon: 'exchange', iconComponent: MutualIcon, value: 'mutual', text: formatMessage(messages.mutual_short), meta: formatMessage(messages.mutual_long) }, { icon: 'user-circle', iconComponent: CircleIcon, value: 'circle', text: formatMessage(messages.circle_short), meta: formatMessage(messages.circle_long) }, ]; + + if (!this.props.noDirect) { + this.options.push( + { icon: 'at', iconComponent: AlternateEmailIcon, value: 'direct', text: formatMessage(messages.direct_short), meta: formatMessage(messages.direct_long) }, + ); + } + this.selectableOptions = [...this.options]; if (!enableLoginPrivacy) { @@ -258,12 +265,6 @@ class PrivacyDropdown extends PureComponent { if (!enableLocalPrivacy) { this.selectableOptions = this.selectableOptions.filter((opt) => opt.value !== 'public_unlisted'); } - - if (!this.props.noDirect) { - this.options.push( - { icon: 'at', iconComponent: AlternateEmailIcon, value: 'direct', text: formatMessage(messages.direct_short), meta: formatMessage(messages.direct_long) }, - ); - } } setTargetRef = c => { diff --git a/app/javascript/mastodon/features/getting_started/index.jsx b/app/javascript/mastodon/features/getting_started/index.jsx index 93ebd85b9f..6a73323ce9 100644 --- a/app/javascript/mastodon/features/getting_started/index.jsx +++ b/app/javascript/mastodon/features/getting_started/index.jsx @@ -9,7 +9,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; -import { ReactComponent as CircleIcon } from '@material-symbols/svg-600/outlined/account_circle.svg'; +import { ReactComponent as CirclesIcon } from '@material-symbols/svg-600/outlined/account_circle-fill.svg'; import { ReactComponent as AlternateEmailIcon } from '@material-symbols/svg-600/outlined/alternate_email.svg'; import { ReactComponent as BookmarksIcon } from '@material-symbols/svg-600/outlined/bookmarks-fill.svg'; import { ReactComponent as PeopleIcon } from '@material-symbols/svg-600/outlined/group.svg'; @@ -135,7 +135,7 @@ class GettingStarted extends ImmutablePureComponent { , , , - , + , ); if (myAccount.get('locked') || unreadFollowRequests > 0) { diff --git a/app/javascript/mastodon/features/list_timeline/index.jsx b/app/javascript/mastodon/features/list_timeline/index.jsx index 905d6a59d7..bebbe1574b 100644 --- a/app/javascript/mastodon/features/list_timeline/index.jsx +++ b/app/javascript/mastodon/features/list_timeline/index.jsx @@ -238,7 +238,7 @@ class ListTimeline extends PureComponent { { antennas.map(antenna => (
  • ))} diff --git a/app/javascript/mastodon/features/onboarding/index.jsx b/app/javascript/mastodon/features/onboarding/index.jsx index 96bc15481e..a22fcabc2c 100644 --- a/app/javascript/mastodon/features/onboarding/index.jsx +++ b/app/javascript/mastodon/features/onboarding/index.jsx @@ -22,7 +22,7 @@ import { focusCompose } from 'mastodon/actions/compose'; import { closeOnboarding } from 'mastodon/actions/onboarding'; import { Icon } from 'mastodon/components/icon'; import Column from 'mastodon/features/ui/components/column'; -import { me } from 'mastodon/initial_state'; +import { enableLocalTimeline, me } from 'mastodon/initial_state'; import { makeGetAccount } from 'mastodon/selectors'; import { assetHost } from 'mastodon/utils/config'; import { WithRouterPropTypes } from 'mastodon/utils/react_router'; @@ -132,9 +132,12 @@ class Onboarding extends ImmutablePureComponent { - - - + {enableLocalTimeline && ( + + + + + )} diff --git a/app/javascript/mastodon/features/ui/components/navigation_panel.jsx b/app/javascript/mastodon/features/ui/components/navigation_panel.jsx index 2b32ee2020..c602bd07b5 100644 --- a/app/javascript/mastodon/features/ui/components/navigation_panel.jsx +++ b/app/javascript/mastodon/features/ui/components/navigation_panel.jsx @@ -5,7 +5,7 @@ import { defineMessages, injectIntl } from 'react-intl'; import { Link } from 'react-router-dom'; -import { ReactComponent as CircleIcon } from '@material-symbols/svg-600/outlined/account_circle.svg'; +import { ReactComponent as CirclesIcon } from '@material-symbols/svg-600/outlined/account_circle-fill.svg'; import { ReactComponent as AlternateEmailIcon } from '@material-symbols/svg-600/outlined/alternate_email.svg'; import { ReactComponent as BookmarksIcon } from '@material-symbols/svg-600/outlined/bookmarks-fill.svg'; import { ReactComponent as PeopleIcon } from '@material-symbols/svg-600/outlined/group.svg'; @@ -140,7 +140,7 @@ class NavigationPanel extends Component { <> - +