mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 04:39:06 +00:00
Merge branch 'sara/language-picker' of https://github.com/Monadical-SAS/reflector into sara/language-picker
This commit is contained in:
@@ -6,9 +6,15 @@ type LiveTranscriptionProps = {
|
|||||||
export default function LiveTrancription(props: LiveTranscriptionProps) {
|
export default function LiveTrancription(props: LiveTranscriptionProps) {
|
||||||
return (
|
return (
|
||||||
<div className="text-center p-4">
|
<div className="text-center p-4">
|
||||||
<p className="text-lg md:text-xl font-bold line-clamp-4">{props.text}</p>
|
<p
|
||||||
|
className={`text-lg md:text-xl lg:text-2xl font-bold ${
|
||||||
|
props.translateText ? "line-clamp-2 lg:line-clamp-5" : "line-clamp-4"
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
{props.text}
|
||||||
|
</p>
|
||||||
{props.translateText && (
|
{props.translateText && (
|
||||||
<p className="text-base md:text-lg font-bold line-clamp-4 mt-4">
|
<p className="text-base md:text-lg lg:text-xl font-bold line-clamp-2 lg:line-clamp-4 mt-4">
|
||||||
{props.translateText}
|
{props.translateText}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user