Skip to content

Commit

Permalink
Fix translate button position (#25807)
Browse files Browse the repository at this point in the history
  • Loading branch information
renchap committed Jul 7, 2023
1 parent 0051128 commit 9f078e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/components/status_content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TranslateButton extends PureComponent {
}

return (
<button className='status__content__read-more-button' onClick={onClick}>
<button className='status__content__translate-button' onClick={onClick}>
<FormattedMessage id='status.translate' defaultMessage='Translate' />
</button>
);
Expand Down
3 changes: 2 additions & 1 deletion app/javascript/styles/contrast/diff.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
.status__content a,
.link-footer a,
.reply-indicator__content a,
.status__content__read-more-button {
.status__content__read-more-button,
.status__content__translate-button {
text-decoration: underline;

&:hover,
Expand Down
3 changes: 2 additions & 1 deletion app/javascript/styles/mastodon/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,8 @@ body > [data-popper-placement] {
max-height: 22px * 15; // 15 lines is roughly above 500 characters
}

.status__content__read-more-button {
.status__content__read-more-button,
.status__content__translate-button {
display: block;
font-size: 15px;
line-height: 22px;
Expand Down

0 comments on commit 9f078e2

Please sign in to comment.