|
1 | 1 | <script lang="ts"> |
2 | 2 | import { Layers, Settings } from '@lucide/svelte'; |
| 3 | + import Container from '$lib/components/Container.svelte'; |
3 | 4 | import ClassicControlModule from '$lib/components/ControlModules/ClassicControlModule.svelte'; |
4 | 5 | import MapControlModule from '$lib/components/ControlModules/MapControlModule.svelte'; |
5 | 6 | import { ModuleType } from '$lib/components/ControlModules/ModuleType'; |
|
26 | 27 | {#if $OwnHubsStore == null} |
27 | 28 | <p>Loading...</p> |
28 | 29 | {: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> |
54 | 57 | </div> |
55 | 58 | <hr class="border-2" /> |
56 | 59 | {#if moduleType === ModuleType.SimpleControlModule} |
|
73 | 76 | {/each} |
74 | 77 | </div> |
75 | 78 | {/if} |
76 | | - </div> |
| 79 | + </Container> |
77 | 80 | {/if} |
0 commit comments