Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
d3rpp committed Aug 12, 2024
1 parent 1ebb41c commit 286f6d8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/everything.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun lint

test:
name: "Run Automated Tests"
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions src/lib/components/main.svelte
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<main class="max-w-screen-2xl mx-auto py-4">
<slot />
</main>
<main class="mx-auto max-w-screen-2xl py-4">
<slot />
</main>
5 changes: 4 additions & 1 deletion src/lib/components/theme-toggle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
Theme Options
-->
<DropdownMenu.Content align="end">
<DropdownMenu.Item on:click={() => setMode("light")} class="data-[highlighted]:bg-destructive">
<DropdownMenu.Item
on:click={() => setMode("light")}
class="data-[highlighted]:bg-destructive"
>
<Sun size="0.8rem" class="mr-4" /> Light
</DropdownMenu.Item>
<DropdownMenu.Item on:click={() => setMode("dark")}>
Expand Down
1 change: 0 additions & 1 deletion src/routes/(app)/app/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script lang="ts">
import ThemeToggle from "@/theme-toggle.svelte";
import Icons from "$lib/icons";
Expand Down
4 changes: 2 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts">
import "../app.css";
import { ModeWatcher } from "mode-watcher";
import { ModeWatcher } from "mode-watcher";
</script>

<ModeWatcher defaultMode="dark" />

<slot />
<slot />
11 changes: 5 additions & 6 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<script lang="ts">
import Main from "@/main.svelte";
import Main from "@/main.svelte";
</script>

<Main>
<a
href="/app"
class="hover:text-blue-300"
>Go to <code>/app</code></a>
</Main>
<a href="/app" class="hover:text-blue-300">
Go to <code>/app</code>
</a>
</Main>

0 comments on commit 286f6d8

Please sign in to comment.