Browse Source

change some icon of fav/rep

pull/4/head
欧醚 5 years ago
parent
commit
66919577e8
6 changed files with 15 additions and 15 deletions
  1. +3
    -3
      app/javascript/mastodon/components/status_action_bar.js
  2. +1
    -1
      app/javascript/mastodon/features/favourited_statuses/index.js
  3. +3
    -3
      app/javascript/mastodon/features/status/components/action_bar.js
  4. +2
    -2
      app/javascript/mastodon/features/status/components/detailed_status.js
  5. +3
    -3
      app/views/statuses/_detailed_status.html.haml
  6. +3
    -3
      app/views/statuses/_simple_status.html.haml

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

@ -236,10 +236,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);
}
@ -251,7 +251,7 @@ class StatusActionBar extends ImmutablePureComponent {
<div className='status__action-bar'>
<div className='status__action-bar__counter'><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} /><span className='status__action-bar__counter__label' >{obfuscatedCount(status.get('replies_count'))}</span></div>
<IconButton className='status__action-bar-button' disabled={!publicStatus} active={status.get('reblogged')} pressed={status.get('reblogged')} title={!publicStatus ? intl.formatMessage(messages.cannot_reblog) : intl.formatMessage(messages.reblog)} icon={reblogIcon} onClick={this.handleReblogClick} />
<IconButton className='status__action-bar-button star-icon' animate active={status.get('favourited')} pressed={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='star' onClick={this.handleFavouriteClick} />
<IconButton className='status__action-bar-button star-icon' animate active={status.get('favourited')} pressed={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='thumbs-up' onClick={this.handleFavouriteClick} />
{shareButton}
<div className='status__action-bar-dropdown'>

+ 1
- 1
app/javascript/mastodon/features/favourited_statuses/index.js View File

@ -76,7 +76,7 @@ class Favourites extends ImmutablePureComponent {
return (
<Column bindToDocument={!multiColumn} ref={this.setRef} label={intl.formatMessage(messages.heading)}>
<ColumnHeader
icon='star'
icon='thumbs-up'
title={intl.formatMessage(messages.heading)}
onPin={this.handlePin}
onMove={this.handleMove}

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

@ -181,9 +181,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';
}
let reblogIcon = 'retweet';
@ -196,7 +196,7 @@ class ActionBar extends React.PureComponent {
<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 disabled={reblog_disabled} active={status.get('reblogged')} title={reblog_disabled ? intl.formatMessage(messages.cannot_reblog) : intl.formatMessage(messages.reblog)} icon={reblogIcon} onClick={this.handleReblogClick} /></div>
<div className='detailed-status__button'><IconButton className='star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='star' onClick={this.handleFavouriteClick} /></div>
<div className='detailed-status__button'><IconButton className='star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='thumbs-up' onClick={this.handleFavouriteClick} /></div>
{shareButton}
<div className='detailed-status__action-bar-dropdown'>

+ 2
- 2
app/javascript/mastodon/features/status/components/detailed_status.js View File

@ -190,7 +190,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
if (this.context.router) {
favouriteLink = (
<Link to={`/statuses/${status.get('id')}/favourites`} className='detailed-status__link'>
<Icon id='star' />
<Icon id='thumbs-up' />
<span className='detailed-status__favorites'>
<FormattedNumber value={status.get('favourites_count')} />
</span>
@ -199,7 +199,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
} else {
favouriteLink = (
<a href={`/interact/${status.get('id')}?type=favourite`} className='detailed-status__link' onClick={this.handleModalLink}>
<Icon id='star' />
<Icon id='thumbs-up' />
<span className='detailed-status__favorites'>
<FormattedNumber value={status.get('favourites_count')} />
</span>

+ 3
- 3
app/views/statuses/_detailed_status.html.haml View File

@ -55,9 +55,9 @@
·
= link_to remote_interaction_path(status, type: :reply), class: 'modal-button detailed-status__link' do
- if status.in_reply_to_id.nil?
= fa_icon('reply')
= fa_icon('comment')
- else
= fa_icon('reply-all')
= fa_icon('comments')
%span.detailed-status__reblogs>= number_to_human status.replies_count, strip_insignificant_zeros: true
= " "
·
@ -74,7 +74,7 @@
= " "
·
= link_to remote_interaction_path(status, type: :favourite), class: 'modal-button detailed-status__link' do
= fa_icon('star')
= fa_icon('thumbs-up')
%span.detailed-status__favorites>= number_to_human status.favourites_count, strip_insignificant_zeros: true
= " "

+ 3
- 3
app/views/statuses/_simple_status.html.haml View File

@ -49,9 +49,9 @@
.status__action-bar__counter
= link_to remote_interaction_path(status, type: :reply), class: 'status__action-bar-button icon-button modal-button', style: 'font-size: 18px; width: 23.1429px; height: 23.1429px; line-height: 23.15px;' do
- if status.in_reply_to_id.nil?
= fa_icon 'reply fw'
= fa_icon 'comment fw'
- else
= fa_icon 'reply-all fw'
= fa_icon 'comments fw'
.status__action-bar__counter__label= obscured_counter status.replies_count
= link_to remote_interaction_path(status, type: :reblog), class: 'status__action-bar-button icon-button modal-button', style: 'font-size: 18px; width: 23.1429px; height: 23.1429px; line-height: 23.15px;' do
- if status.distributable?
@ -61,4 +61,4 @@
- else
= fa_icon 'envelope fw'
= link_to remote_interaction_path(status, type: :favourite), class: 'status__action-bar-button icon-button modal-button', style: 'font-size: 18px; width: 23.1429px; height: 23.1429px; line-height: 23.15px;' do
= fa_icon 'star fw'
= fa_icon 'thumbs-up fw'

Loading…
Cancel
Save