Skip to content

Commit 7acb6fa

Browse files
committed
Start trying to fix stuff
1 parent d5f00b6 commit 7acb6fa

2 files changed

Lines changed: 30 additions & 27 deletions

File tree

src/routes/(authenticated)/shockers/+page.svelte

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts">
22
import { Layers, Settings } from '@lucide/svelte';
3+
import Container from '$lib/components/Container.svelte';
34
import ClassicControlModule from '$lib/components/ControlModules/ClassicControlModule.svelte';
45
import MapControlModule from '$lib/components/ControlModules/MapControlModule.svelte';
56
import { ModuleType } from '$lib/components/ControlModules/ModuleType';
@@ -26,31 +27,33 @@
2627
{#if $OwnHubsStore == null}
2728
<p>Loading...</p>
2829
{:else}
29-
<div class="flex items-center justify-between">
30-
<h1 class="text-2xl font-bold">Shockers</h1>
31-
<div>
32-
<!-- Mode button -->
33-
<Popover.Root>
34-
<Popover.Trigger><Layers /></Popover.Trigger>
35-
<Popover.Content class="flex">
36-
<Button variant="ghost" onclick={() => (moduleType = ModuleType.ClassicControlModule)}>
37-
Classic
38-
</Button>
39-
<Button variant="ghost" onclick={() => (moduleType = ModuleType.RichControlModule)}>
40-
Rich
41-
</Button>
42-
<Button variant="ghost" onclick={() => (moduleType = ModuleType.SimpleControlModule)}>
43-
Simple
44-
</Button>
45-
<Button variant="ghost" onclick={() => (moduleType = ModuleType.MapControlModule)}>
46-
Map
47-
</Button>
48-
</Popover.Content>
49-
</Popover.Root>
50-
<!-- Options button -->
51-
<Button variant="ghost" class="p-0!" aria-label="Options">
52-
<Settings />
53-
</Button>
30+
<Container>
31+
<div class="flex">
32+
<h1 class="text-2xl font-bold">Shockers</h1>
33+
<div>
34+
<!-- Mode button -->
35+
<Popover.Root>
36+
<Popover.Trigger><Layers /></Popover.Trigger>
37+
<Popover.Content class="flex">
38+
<Button variant="ghost" onclick={() => (moduleType = ModuleType.ClassicControlModule)}>
39+
Classic
40+
</Button>
41+
<Button variant="ghost" onclick={() => (moduleType = ModuleType.RichControlModule)}>
42+
Rich
43+
</Button>
44+
<Button variant="ghost" onclick={() => (moduleType = ModuleType.SimpleControlModule)}>
45+
Simple
46+
</Button>
47+
<Button variant="ghost" onclick={() => (moduleType = ModuleType.MapControlModule)}>
48+
Map
49+
</Button>
50+
</Popover.Content>
51+
</Popover.Root>
52+
<!-- Options button -->
53+
<Button variant="ghost" class="p-0!" aria-label="Options">
54+
<Settings />
55+
</Button>
56+
</div>
5457
</div>
5558
<hr class="border-2" />
5659
{#if moduleType === ModuleType.SimpleControlModule}
@@ -73,5 +76,5 @@
7376
{/each}
7477
</div>
7578
{/if}
76-
</div>
79+
</Container>
7780
{/if}

src/routes/signup/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
<Container>
7979
<Card.Header>
80-
<Card.Title class="text-3xl">Sign Up</Card.Title>
80+
<Card.Title class="text-3xl text-nowrap">Sign Up</Card.Title>
8181
</Card.Header>
8282
<Card.Content>
8383
<form class="flex flex-col space-y-2" onsubmit={handleSubmission}>

0 commit comments

Comments
 (0)