Shazam the mini translation block

This commit is contained in:
Lim Chee Aun 2023-07-24 22:27:30 +08:00
parent 871fe11d0f
commit 6fe182a7a3

View file

@ -111,18 +111,22 @@ function TranslationBlock({
detectedLang !== targetLangText
) {
return (
<div class="status-translation-block-mini">
<Icon
icon="translate"
alt={`Auto-translated from ${sourceLangText}`}
/>
<output
lang={targetLang}
dir="auto"
title={pronunciationContent || ''}
>
{translatedContent}
</output>
<div class="shazam-container">
<div class="shazam-container-inner">
<div class="status-translation-block-mini">
<Icon
icon="translate"
alt={`Auto-translated from ${sourceLangText}`}
/>
<output
lang={targetLang}
dir="auto"
title={pronunciationContent || ''}
>
{translatedContent}
</output>
</div>
</div>
</div>
);
}