📱 Adds wrap mode for phones

This commit is contained in:
Rune Harlyk
2024-08-18 01:41:54 +02:00
committed by Rune Harlyk
parent d8659f8ed5
commit 3fd7f28d7e
5 changed files with 22 additions and 8 deletions
+2 -2
View File
@@ -1,13 +1,13 @@
<script lang="ts">
import Controls from './Controls.svelte';
import WidgetContainer from '$lib/components/layout/DynamicLayout.svelte';
import { controllerLayout} from '$lib/components/layout/LayoutManager';
import { controllerLayout, phoneControllerLayout} from '$lib/components/layout/LayoutManager';
</script>
<div class="absolute top-0 select-none w-screen h-screen">
<Controls />
<!-- <button class="absolute z-20 btn" on:click={addWidget}>Add Widget</button> -->
<div class="absolute w-full h-screen top-0 overflow-hidden lg:pt-16 pt-12">
<WidgetContainer container={$controllerLayout} />
<WidgetContainer container={$phoneControllerLayout} />
</div>
</div>
+1 -1
View File
@@ -113,7 +113,7 @@
<VerticalSlider min={0} max={100} on:input={(e) => handleRange(e, 'height')} />
<label for="height">Ht</label>
</div>
<div class="flex items-end gap-4 bg-base-300 bg-opacity-50 h-min rounded-tr-xl pl-0 p-3">
<div class="flex items-end gap-4 bg-base-300 bg-opacity-50 h-min rounded-tr-xl pl-0 p-3 portrait:hidden">
<div class="join">
{#each modes as modeValue}
<button