🐛 (audioClip) Fix audio clip UI on Safari

This commit is contained in:
Baptiste Arnaud
2024-08-21 14:32:47 +02:00
parent 37ef8fe240
commit b2c8ef941b
9 changed files with 42 additions and 43 deletions

View File

@@ -294,7 +294,6 @@ const BotContent = (props: BotContentProps) => {
onMount(() => {
if (!botContainerElement) return
console.log('yes')
setBotContainer(botContainerElement)
resizeObserver.observe(botContainerElement)
setBotContainerHeight(`${botContainerElement.clientHeight}px`)

View File

@@ -59,7 +59,6 @@ export const InputChatBlock = (props: Props) => {
})
const handleSubmit = async (content: InputSubmitContent) => {
console.log(content)
setAnswer(content)
props.onSubmit(content)
}

View File

@@ -127,12 +127,12 @@ const TextGuestBubble = (props: { answer: TextInputSubmitContent }) => {
const AudioGuestBubble = (props: { answer: RecordingInputSubmitContent }) => {
return (
<div class="flex flex-col gap-1 items-end w-full">
<div class="flex flex-col gap-1 items-end">
<div
class="p-2 w-full whitespace-pre-wrap typebot-guest-bubble flex flex-col max-w-[316px]"
class="p-2 w-full whitespace-pre-wrap typebot-guest-bubble flex flex-col"
data-testid="guest-bubble"
>
<audio controls src={props.answer.url} class="w-full h-[54px]" />
<audio controls src={props.answer.url} />
</div>
</div>
)