refac: playground

This commit is contained in:
Timothy J. Baek
2024-06-18 17:41:47 -07:00
parent d1eb2c2207
commit ff9b94bab7
4 changed files with 41 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
<script>
import { showSidebar } from '$lib/stores';
import Playground from '$lib/components/workspace/Playground.svelte';
</script>
<div
class=" flex flex-col w-full min-h-screen max-h-screen {$showSidebar
? 'md:max-w-[calc(100%-260px)]'
: ''}"
>
<div class=" py-4 px-5 flex-1 max-h-full overflow-y-auto">
<Playground />
</div>
</div>

View File

@@ -82,13 +82,6 @@
>
{$i18n.t('Functions')}
</a>
<a
class="min-w-fit rounded-lg p-1.5 px-3 {$page.url.pathname.includes('/workspace/playground')
? 'bg-gray-50 dark:bg-gray-850'
: ''} transition"
href="/workspace/playground">{$i18n.t('Playground')}</a
>
</div>
</div>

View File

@@ -1,5 +0,0 @@
<script>
import Playground from '$lib/components/workspace/Playground.svelte';
</script>
<Playground />