@nrbx/topbar-components 1.0.3 → 1.0.4
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/out/components/provider.luau +10 -7
- package/package.json +1 -1
|
@@ -20,16 +20,18 @@ local function sortByDock(children)
|
|
|
20
20
|
if child == nil then
|
|
21
21
|
return nil
|
|
22
22
|
end
|
|
23
|
-
local
|
|
24
|
-
local
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
local childObj = child
|
|
24
|
+
local props = childObj.props
|
|
25
|
+
local _dockValue = props
|
|
26
|
+
if _dockValue ~= nil then
|
|
27
|
+
_dockValue = _dockValue.dock
|
|
27
28
|
end
|
|
28
|
-
local
|
|
29
|
-
|
|
29
|
+
local dockValue = _dockValue
|
|
30
|
+
debugLog(`sortByDock child: hasProps={props ~= nil}`, `dock="{dockValue}"`, `→ {if dockValue == "Center" then "Center" elseif dockValue == "Right" then "Right" else "Left"}`)
|
|
31
|
+
if dockValue == "Center" then
|
|
30
32
|
center[ci + 1] = child
|
|
31
33
|
ci += 1
|
|
32
|
-
elseif
|
|
34
|
+
elseif dockValue == "Right" then
|
|
33
35
|
right[ri + 1] = child
|
|
34
36
|
ri += 1
|
|
35
37
|
else
|
|
@@ -37,6 +39,7 @@ local function sortByDock(children)
|
|
|
37
39
|
li += 1
|
|
38
40
|
end
|
|
39
41
|
end)
|
|
42
|
+
debugLog(`sortByDock totals: left={#left} center={#center} right={#right}`)
|
|
40
43
|
return { left, center, right }
|
|
41
44
|
end
|
|
42
45
|
local function TopbarProvider(_param)
|