🐛 (audioClip) Fix audio clip UI on Safari
This commit is contained in:
@@ -294,7 +294,6 @@ const BotContent = (props: BotContentProps) => {
|
||||
|
||||
onMount(() => {
|
||||
if (!botContainerElement) return
|
||||
console.log('yes')
|
||||
setBotContainer(botContainerElement)
|
||||
resizeObserver.observe(botContainerElement)
|
||||
setBotContainerHeight(`${botContainerElement.clientHeight}px`)
|
||||
|
||||
@@ -59,7 +59,6 @@ export const InputChatBlock = (props: Props) => {
|
||||
})
|
||||
|
||||
const handleSubmit = async (content: InputSubmitContent) => {
|
||||
console.log(content)
|
||||
setAnswer(content)
|
||||
props.onSubmit(content)
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user