fix style

This commit is contained in:
an-lee
2024-09-14 06:47:21 +08:00
parent 9b8cc54071
commit fc2ad1f648

View File

@@ -111,18 +111,20 @@ const SelectedWords = (props: {
<Separator className="my-4" /> <Separator className="my-4" />
{currentDictValue === "cambridge" ? ( <div className="rounded-lg overflow-hidden mr-10">
<CamdictLookupResult word={word} /> {currentDictValue === "cambridge" ? (
) : currentDictValue === "ai" ? ( <CamdictLookupResult word={word} />
<AiLookupResult ) : currentDictValue === "ai" ? (
word={word} <AiLookupResult
context={caption.text} word={word}
sourceId={transcription.targetId} context={caption.text}
sourceType={transcription.targetType} sourceId={transcription.targetId}
/> sourceType={transcription.targetType}
) : ( />
<DictLookupResult word={word} autoHeight={true} /> ) : (
)} <DictLookupResult word={word} autoHeight={true} />
)}
</div>
</> </>
); );
}; };