mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-18 16:35:31 +01:00
fix: removed title button
This commit is contained in:
parent
32d84c85ea
commit
44d8596872
1 changed files with 12 additions and 6 deletions
|
|
@ -24,6 +24,7 @@ export default function MessageAudio({ index, message, isLast }: THoverButtons)
|
|||
const isMouseDownRef = useRef(false);
|
||||
const timerRef = useRef<NodeJS.Timeout | null>(null);
|
||||
const counterRef = useRef(0);
|
||||
const hasTriggeredSpeechRef = useRef(false);
|
||||
|
||||
const renderIcon = (size: string) => {
|
||||
if (isLoading) {
|
||||
|
|
@ -110,18 +111,23 @@ export default function MessageAudio({ index, message, isLast }: THoverButtons)
|
|||
}
|
||||
}}
|
||||
type="button"
|
||||
title={isSpeaking ? localize('com_ui_stop') : localize('com_ui_read_aloud')}
|
||||
>
|
||||
{renderIcon('19')}
|
||||
</button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="bottom" sideOffset={0}>
|
||||
<div className="space-y-2">
|
||||
<p className="text-center text-sm text-gray-600 dark:text-gray-300">
|
||||
{localize('com_ui_read_aloud')}
|
||||
<br />
|
||||
{audioText}
|
||||
</p>
|
||||
{isSpeaking ? (
|
||||
<p className="text-center text-sm text-gray-600 dark:text-gray-300">
|
||||
{localize('com_ui_stop')}
|
||||
</p>
|
||||
) : (
|
||||
<p className="text-center text-sm text-gray-600 dark:text-gray-300">
|
||||
{localize('com_ui_read_aloud')}
|
||||
<br />
|
||||
{audioText}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue