@webmcp-auto-ui/ui 2.5.15 → 2.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/wm/FlexLayout.svelte +35 -33
package/package.json
CHANGED
package/src/wm/FlexLayout.svelte
CHANGED
|
@@ -39,40 +39,42 @@
|
|
|
39
39
|
|
|
40
40
|
<div class="relative w-full h-full overflow-y-auto" bind:this={el}>
|
|
41
41
|
|
|
42
|
-
{#if
|
|
43
|
-
|
|
44
|
-
<
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
{#if cw > 0}
|
|
43
|
+
{#if showSlider && !mobile}
|
|
44
|
+
<div class="sticky top-0 z-10 flex items-center justify-end px-3 py-1.5 gap-2">
|
|
45
|
+
<label class="flex items-center gap-2 font-mono text-[10px] text-text2 select-none">
|
|
46
|
+
<span>Size</span>
|
|
47
|
+
<input type="range" min="0" max="1" step="0.01"
|
|
48
|
+
bind:value={scale}
|
|
49
|
+
class="w-24 h-1 accent-[var(--color-accent,#6366f1)]" />
|
|
50
|
+
<span class="w-10 text-right tabular-nums">{currentMinW}px</span>
|
|
51
|
+
</label>
|
|
52
|
+
</div>
|
|
53
|
+
{/if}
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
55
|
+
{#if mobile}
|
|
56
|
+
<div class="flex flex-col gap-3 p-2">
|
|
57
|
+
{#each windows as win (win.id)}
|
|
58
|
+
{#if win.visible !== false}
|
|
59
|
+
{@const lw = { id: win.id, x: 0, y: 0, width: cw, height: 0, zIndex: 1, visible: true, folded: win.folded }}
|
|
60
|
+
<div>
|
|
61
|
+
{@render children(win, lw, { scale })}
|
|
62
|
+
</div>
|
|
63
|
+
{/if}
|
|
64
|
+
{/each}
|
|
65
|
+
</div>
|
|
66
|
+
{:else}
|
|
67
|
+
<div class="flex-grid" style="--min-w:{currentMinW}px;--gap:{gap}px;">
|
|
68
|
+
{#each windows as win (win.id)}
|
|
69
|
+
{#if win.visible !== false}
|
|
70
|
+
{@const lw = makeLw(win)}
|
|
71
|
+
<div class="flex-grid-item rounded-lg">
|
|
72
|
+
{@render children(win, lw, { scale })}
|
|
73
|
+
</div>
|
|
74
|
+
{/if}
|
|
75
|
+
{/each}
|
|
76
|
+
</div>
|
|
77
|
+
{/if}
|
|
76
78
|
{/if}
|
|
77
79
|
|
|
78
80
|
</div>
|