mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 01:49:23 +08:00
sync code of fastrtc, add text support through datachannel, fix safari connect problem support chat without camera or mic
27 lines
445 B
Svelte
27 lines
445 B
Svelte
<script lang="ts">
|
|
export let message;
|
|
export let style = '';
|
|
</script>
|
|
|
|
<div
|
|
class="answer-message-container"
|
|
{style}
|
|
>
|
|
<div class="answer-message-text">
|
|
{message}
|
|
</div>
|
|
</div>
|
|
|
|
<style lang="less">
|
|
.answer-message-container {
|
|
position: absolute;
|
|
right: 12px;
|
|
z-index: 101;
|
|
padding: 6px 12px;
|
|
border-radius: 12px;
|
|
width: 200px;
|
|
background: rgba(255, 255, 255, 0.8);
|
|
bottom: 166px;
|
|
}
|
|
</style>
|