Skip to content

Commit 24da58c

Browse files
committed
Minor tweaks to layout
1 parent 6960aa4 commit 24da58c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/app.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,5 +173,10 @@ code {
173173
}
174174

175175
pre {
176-
@apply text-wrap;
176+
@apply bg-muted;
177+
@apply overflow-x-scroll;
177178
}
179+
180+
* {
181+
min-width: 0;
182+
}

src/routes/+layout.svelte

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
<script lang="ts">
22
import '../app.css';
3+
import 'highlight.js/styles/atom-one-dark.css';
34
import { ModeWatcher } from 'mode-watcher';
45
import { Toaster } from '$lib/components/ui/sonner';
56
import NavBar from '$lib/components/shared/NavBar.svelte';
67
import Footer from '$lib/components/shared/Footer.svelte';
78
import SideNav from '$lib/components/shared/SideNav.svelte';
9+
import hljs from 'highlight.js';
10+
import { onMount } from 'svelte';
11+
12+
onMount(() => {
13+
hljs.highlightAll();
14+
});
815
</script>
916

1017
<div class="flex min-h-screen flex-col">

0 commit comments

Comments
 (0)