Browse Source

change reply icon to comment

closed-social-glitch-2
欧醚 1 year ago
parent
commit
5dcfb66412
13 changed files with 23 additions and 23 deletions
  1. +2
    -2
      app/javascript/flavours/glitch/components/status_action_bar.jsx
  2. +1
    -1
      app/javascript/flavours/glitch/features/direct_timeline/components/conversation.jsx
  3. +1
    -1
      app/javascript/flavours/glitch/features/interaction_modal/index.jsx
  4. +1
    -1
      app/javascript/flavours/glitch/features/notifications/components/filter_bar.jsx
  5. +4
    -4
      app/javascript/flavours/glitch/features/picture_in_picture/components/footer.jsx
  6. +1
    -1
      app/javascript/flavours/glitch/features/status/components/action_bar.jsx
  7. +1
    -1
      app/javascript/mastodon/components/status.jsx
  8. +3
    -3
      app/javascript/mastodon/components/status_action_bar.jsx
  9. +1
    -1
      app/javascript/mastodon/features/direct_timeline/components/conversation.jsx
  10. +1
    -1
      app/javascript/mastodon/features/interaction_modal/index.jsx
  11. +1
    -1
      app/javascript/mastodon/features/notifications/components/filter_bar.jsx
  12. +3
    -3
      app/javascript/mastodon/features/picture_in_picture/components/footer.jsx
  13. +3
    -3
      app/javascript/mastodon/features/status/components/action_bar.jsx

+ 2
- 2
app/javascript/flavours/glitch/components/status_action_bar.jsx View File

@ -271,10 +271,10 @@ class StatusActionBar extends ImmutablePureComponent {
}
if (status.get('in_reply_to_id', null) === null) {
replyIcon = 'reply';
replyIcon = 'comment';
replyTitle = intl.formatMessage(messages.reply);
} else {
replyIcon = 'reply-all';
replyIcon = 'comments';
replyTitle = intl.formatMessage(messages.replyAll);
}

+ 1
- 1
app/javascript/flavours/glitch/features/direct_timeline/components/conversation.jsx View File

@ -208,7 +208,7 @@ class Conversation extends ImmutablePureComponent {
/>
<div className='status__action-bar'>
<IconButton className='status__action-bar-button' title={intl.formatMessage(messages.reply)} icon='reply' onClick={this.handleReply} />
<IconButton className='status__action-bar-button' title={intl.formatMessage(messages.reply)} icon='comment' onClick={this.handleReply} />
<div className='status__action-bar-dropdown'>
<DropdownMenuContainer

+ 1
- 1
app/javascript/flavours/glitch/features/interaction_modal/index.jsx View File

@ -96,7 +96,7 @@ class InteractionModal extends React.PureComponent {
switch(type) {
case 'reply':
icon = <Icon id='reply' />;
icon = <Icon id='comment' />;
title = <FormattedMessage id='interaction_modal.title.reply' defaultMessage="Reply to {name}'s post" values={{ name }} />;
actionDescription = <FormattedMessage id='interaction_modal.description.reply' defaultMessage='With an account on Mastodon, you can respond to this post.' />;
break;

+ 1
- 1
app/javascript/flavours/glitch/features/notifications/components/filter_bar.jsx View File

@ -64,7 +64,7 @@ class FilterBar extends React.PureComponent {
onClick={this.onClick('mention')}
title={intl.formatMessage(tooltips.mentions)}
>
<Icon id='reply-all' fixedWidth />
<Icon id='comments' fixedWidth />
</button>
<button
className={selectedFilter === 'favourite' ? 'active' : ''}

+ 4
- 4
app/javascript/flavours/glitch/features/picture_in_picture/components/footer.jsx View File

@ -160,10 +160,10 @@ class Footer extends ImmutablePureComponent {
let replyIcon, replyTitle;
if (status.get('in_reply_to_id', null) === null) {
replyIcon = 'reply';
replyIcon = 'comment';
replyTitle = intl.formatMessage(messages.reply);
} else {
replyIcon = 'reply-all';
replyIcon = 'comments';
replyTitle = intl.formatMessage(messages.replyAll);
}
@ -185,7 +185,7 @@ class Footer extends ImmutablePureComponent {
<IconButton
className='status__action-bar-button'
title={replyTitle}
icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'reply' : replyIcon}
icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'comment' : replyIcon}
onClick={this.handleReplyClick}
counter={status.get('replies_count')}
obfuscateCount
@ -196,7 +196,7 @@ class Footer extends ImmutablePureComponent {
<IconButton
className='status__action-bar-button'
title={replyTitle}
icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'reply' : replyIcon}
icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'comment' : replyIcon}
onClick={this.handleReplyClick}
/>
);

+ 1
- 1
app/javascript/flavours/glitch/features/status/components/action_bar.jsx View File

@ -213,7 +213,7 @@ class ActionBar extends React.PureComponent {
return (
<div className='detailed-status__action-bar'>
<div className='detailed-status__button'><IconButton title={intl.formatMessage(messages.reply)} icon={status.get('in_reply_to_id', null) === null ? 'reply' : 'reply-all'} onClick={this.handleReplyClick} /></div>
<div className='detailed-status__button'><IconButton title={intl.formatMessage(messages.reply)} icon={status.get('in_reply_to_id', null) === null ? 'comment' : 'comments'} onClick={this.handleReplyClick} /></div>
<div className='detailed-status__button'><IconButton className={classNames({ reblogPrivate })} disabled={!publicStatus && !reblogPrivate} active={status.get('reblogged')} title={reblogTitle} icon='retweet' onClick={this.handleReblogClick} /></div>
<div className='detailed-status__button'><IconButton className='star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='heart' onClick={this.handleFavouriteClick} /></div>
{shareButton}

+ 1
- 1
app/javascript/mastodon/components/status.jsx View File

@ -391,7 +391,7 @@ class Status extends ImmutablePureComponent {
prepend = (
<div className='status__prepend'>
<div className='status__prepend-icon-wrapper'><Icon id='reply' className='status__prepend-icon' fixedWidth /></div>
<div className='status__prepend-icon-wrapper'><Icon id='comment' className='status__prepend-icon' fixedWidth /></div>
<FormattedMessage id='status.replied_to' defaultMessage='Replied to {name}' values={{ name: <a onClick={this.handlePrependAccountClick} data-id={status.getIn(['account', 'id'])} href={`/@${status.getIn(['account', 'acct'])}`} className='status__display-name muted'><bdi><strong dangerouslySetInnerHTML={display_name_html} /></bdi></a> }} />
</div>
);

+ 3
- 3
app/javascript/mastodon/components/status_action_bar.jsx View File

@ -327,10 +327,10 @@ class StatusActionBar extends ImmutablePureComponent {
let replyIcon;
let replyTitle;
if (status.get('in_reply_to_id', null) === null) {
replyIcon = 'reply';
replyIcon = 'comment';
replyTitle = intl.formatMessage(messages.reply);
} else {
replyIcon = 'reply-all';
replyIcon = 'comments';
replyTitle = intl.formatMessage(messages.replyAll);
}
@ -357,7 +357,7 @@ class StatusActionBar extends ImmutablePureComponent {
return (
<div className='status__action-bar'>
<IconButton className='status__action-bar__button' title={replyTitle} icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'reply' : replyIcon} onClick={this.handleReplyClick} counter={status.get('replies_count')} obfuscateCount />
<IconButton className='status__action-bar__button' title={replyTitle} icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'comment' : replyIcon} onClick={this.handleReplyClick} counter={status.get('replies_count')} obfuscateCount />
<IconButton className={classNames('status__action-bar__button', { reblogPrivate })} disabled={!publicStatus && !reblogPrivate} active={status.get('reblogged')} title={reblogTitle} icon='retweet' onClick={this.handleReblogClick} counter={withCounters ? status.get('reblogs_count') : undefined} />
<IconButton className='status__action-bar__button star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='heart' onClick={this.handleFavouriteClick} counter={withCounters ? status.get('favourites_count') : undefined} />
<IconButton className='status__action-bar__button bookmark-icon' disabled={!signedIn} active={status.get('bookmarked')} title={intl.formatMessage(messages.bookmark)} icon='bookmark' onClick={this.handleBookmarkClick} />

+ 1
- 1
app/javascript/mastodon/features/direct_timeline/components/conversation.jsx View File

@ -176,7 +176,7 @@ class Conversation extends ImmutablePureComponent {
)}
<div className='status__action-bar'>
<IconButton className='status__action-bar-button' title={intl.formatMessage(messages.reply)} icon='reply' onClick={this.handleReply} />
<IconButton className='status__action-bar-button' title={intl.formatMessage(messages.reply)} icon='comment' onClick={this.handleReply} />
<div className='status__action-bar-dropdown'>
<DropdownMenuContainer

+ 1
- 1
app/javascript/mastodon/features/interaction_modal/index.jsx View File

@ -96,7 +96,7 @@ class InteractionModal extends React.PureComponent {
switch(type) {
case 'reply':
icon = <Icon id='reply' />;
icon = <Icon id='comment' />;
title = <FormattedMessage id='interaction_modal.title.reply' defaultMessage="Reply to {name}'s post" values={{ name }} />;
actionDescription = <FormattedMessage id='interaction_modal.description.reply' defaultMessage='With an account on Mastodon, you can respond to this post.' />;
break;

+ 1
- 1
app/javascript/mastodon/features/notifications/components/filter_bar.jsx View File

@ -64,7 +64,7 @@ class FilterBar extends React.PureComponent {
onClick={this.onClick('mention')}
title={intl.formatMessage(tooltips.mentions)}
>
<Icon id='reply-all' fixedWidth />
<Icon id='comments' fixedWidth />
</button>
<button
className={selectedFilter === 'favourite' ? 'active' : ''}

+ 3
- 3
app/javascript/mastodon/features/picture_in_picture/components/footer.jsx View File

@ -158,10 +158,10 @@ class Footer extends ImmutablePureComponent {
let replyIcon, replyTitle;
if (status.get('in_reply_to_id', null) === null) {
replyIcon = 'reply';
replyIcon = 'comment';
replyTitle = intl.formatMessage(messages.reply);
} else {
replyIcon = 'reply-all';
replyIcon = 'comments';
replyTitle = intl.formatMessage(messages.replyAll);
}
@ -179,7 +179,7 @@ class Footer extends ImmutablePureComponent {
return (
<div className='picture-in-picture__footer'>
<IconButton className='status__action-bar-button' title={replyTitle} icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'reply' : replyIcon} onClick={this.handleReplyClick} counter={status.get('replies_count')} obfuscateCount />
<IconButton className='status__action-bar-button' title={replyTitle} icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'comment' : replyIcon} onClick={this.handleReplyClick} counter={status.get('replies_count')} obfuscateCount />
<IconButton className={classNames('status__action-bar-button', { reblogPrivate })} disabled={!publicStatus && !reblogPrivate} active={status.get('reblogged')} title={reblogTitle} icon='retweet' onClick={this.handleReblogClick} counter={status.get('reblogs_count')} />
<IconButton className='status__action-bar-button star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='heart' onClick={this.handleFavouriteClick} counter={status.get('favourites_count')} />
{withOpenButton && <IconButton className='status__action-bar-button' title={intl.formatMessage(messages.open)} icon='external-link' onClick={this.handleOpenClick} href={`/@${status.getIn(['account', 'acct'])}/${status.get('id')}`} />}

+ 3
- 3
app/javascript/mastodon/features/status/components/action_bar.jsx View File

@ -261,9 +261,9 @@ class ActionBar extends React.PureComponent {
let replyIcon;
if (status.get('in_reply_to_id', null) === null) {
replyIcon = 'reply';
replyIcon = 'comment';
} else {
replyIcon = 'reply-all';
replyIcon = 'comments';
}
const reblogPrivate = status.getIn(['account', 'id']) === me && status.get('visibility') === 'private';
@ -281,7 +281,7 @@ class ActionBar extends React.PureComponent {
return (
<div className='detailed-status__action-bar'>
<div className='detailed-status__button'><IconButton title={intl.formatMessage(messages.reply)} icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'reply' : replyIcon} onClick={this.handleReplyClick} /></div>
<div className='detailed-status__button'><IconButton title={intl.formatMessage(messages.reply)} icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'comment' : replyIcon} onClick={this.handleReplyClick} /></div>
<div className='detailed-status__button' ><IconButton className={classNames({ reblogPrivate })} disabled={!publicStatus && !reblogPrivate} active={status.get('reblogged')} title={reblogTitle} icon='retweet' onClick={this.handleReblogClick} /></div>
<div className='detailed-status__button'><IconButton className='star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='heart' onClick={this.handleFavouriteClick} /></div>
<div className='detailed-status__button'><IconButton className='bookmark-icon' disabled={!signedIn} active={status.get('bookmarked')} title={intl.formatMessage(messages.bookmark)} icon='bookmark' onClick={this.handleBookmarkClick} /></div>

Loading…
Cancel
Save