Compare commits

...

4 Commits

Author SHA1 Message Date
Colin Dean
537fd18924
Merge 62c3b11c8d into c442589593 2025-07-10 08:06:40 +00:00
Colin Dean
62c3b11c8d
Merge branch 'main' into patch-1 2025-02-09 22:47:23 -05:00
Colin Dean
bc6b4a0ac8
Merge branch 'main' into patch-1 2025-01-17 18:49:15 -05:00
Colin Dean
01a5e9df36
Swap order of translation restoration and service credit
Swapping them moves the "show original" link to the same location where the "translate" link was, increasing the likelihood that a user need not move the pointer to restore the original— but not guaranteeing it.

Further reasoning: As a language learner, it's educational to follow accounts posting in the language I'm learning. I use the "translate" feature to confirm my understanding or teach me vocabulary I don't know. I will sometimes swap between the original and the translated version multiple times. This small UX tweak dramatically decreases the chance that one must move their pointer at all, whereas before, the "show original" link was _always_ on the other side of the box and required pointer movement.
2025-01-16 11:30:08 -05:00

View File

@ -43,13 +43,13 @@ class TranslateButton extends PureComponent {
return (
<div className='translate-button'>
<div className='translate-button__meta'>
<FormattedMessage id='status.translated_from_with' defaultMessage='Translated from {lang} using {provider}' values={{ lang: languageName, provider }} />
</div>
<button className='link-button' onClick={onClick}>
<FormattedMessage id='status.show_original' defaultMessage='Show original' />
</button>
<div className='translate-button__meta'>
<FormattedMessage id='status.translated_from_with' defaultMessage='Translated from {lang} using {provider}' values={{ lang: languageName, provider }} />
</div>
</div>
);
}