diff --git a/src/lib/components/chat/Artifacts.svelte b/src/lib/components/chat/Artifacts.svelte index 97fe5c5af..c6b702210 100644 --- a/src/lib/components/chat/Artifacts.svelte +++ b/src/lib/components/chat/Artifacts.svelte @@ -4,9 +4,11 @@ const i18n = getContext('i18n'); const dispatch = createEventDispatcher(); - import { showArtifacts, showControls } from '$lib/stores'; + import { chatId, showArtifacts, showControls } from '$lib/stores'; import XMark from '../icons/XMark.svelte'; import { copyToClipboard, createMessagesList } from '$lib/utils'; + import ArrowsPointingOut from '../icons/ArrowsPointingOut.svelte'; + import Tooltip from '../common/Tooltip.svelte'; export let overlay = false; export let history; @@ -146,6 +148,16 @@ }); }; + const showFullScreen = () => { + if (iframeElement.requestFullscreen) { + iframeElement.requestFullscreen(); + } else if (iframeElement.webkitRequestFullscreen) { + iframeElement.webkitRequestFullscreen(); + } else if (iframeElement.msRequestFullscreen) { + iframeElement.msRequestFullscreen(); + } + }; + onMount(() => {}); @@ -241,7 +253,7 @@ -