Translate: Make translation more readable (#3252)

This commit is contained in:
T1ckbase 2025-06-12 08:29:50 +08:00 committed by GitHub
parent a366693e96
commit b35b72c066
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -57,7 +57,7 @@ export function TranslationAccessory({ message }: { message: Message; }) {
<span className={cl("accessory")}>
<TranslateIcon width={16} height={16} className={cl("accessory-icon")} />
{Parser.parse(translation.text)}
{" "}
<br />
(translated from {translation.sourceLanguage} - <Dismiss onDismiss={() => setTranslation(undefined)} />)
</span>
);

View file

@ -15,6 +15,8 @@
margin-top: 0.5em;
font-style: italic;
font-weight: 400;
line-height: 1.2rem;
white-space: break-spaces;
}
.vc-trans-accessory-icon {