refac: styling

This commit is contained in:
Timothy J. Baek
2024-10-06 02:49:16 -07:00
parent 75780256d1
commit 059ac466e0
2 changed files with 12 additions and 14 deletions

View File

@@ -4,7 +4,7 @@
import Markdown from './Markdown.svelte';
import LightBlub from '$lib/components/icons/LightBlub.svelte';
import { showArtifacts, showControls, showOverview } from '$lib/stores';
import { mobile, showArtifacts, showControls, showOverview } from '$lib/stores';
export let id;
export let content;
@@ -73,7 +73,7 @@
on:code={(e) => {
const { lang } = e.detail;
console.log('code', lang);
if (['html', 'svg'].includes(lang)) {
if (['html', 'svg'].includes(lang) && !$mobile) {
showArtifacts.set(true);
showControls.set(true);
}