mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
[feat] update some feature
sync code of fastrtc, add text support through datachannel, fix safari connect problem support chat without camera or mic
This commit is contained in:
26
frontend/shared/VideoChat/components/ChatMessage.svelte
Normal file
26
frontend/shared/VideoChat/components/ChatMessage.svelte
Normal file
@@ -0,0 +1,26 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user