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 @@ -
+
+ + + +
{/if} diff --git a/src/lib/components/icons/ArrowsPointingOut.svelte b/src/lib/components/icons/ArrowsPointingOut.svelte new file mode 100644 index 000000000..efc7f98b6 --- /dev/null +++ b/src/lib/components/icons/ArrowsPointingOut.svelte @@ -0,0 +1,19 @@ + + + + +