@theguild/components 9.3.0-alpha-20250202175922-b8244c241900d9d951ab8f9ae960cae87b4df1c5 → 9.3.0-alpha-20250204181532-a488490061c5c8c8623a4030e8ee44b653ee872a
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.
|
@@ -29,7 +29,7 @@ function Marquee({
|
|
|
29
29
|
...rest,
|
|
30
30
|
children: [
|
|
31
31
|
/* @__PURE__ */ jsxs(
|
|
32
|
-
"
|
|
32
|
+
"div",
|
|
33
33
|
{
|
|
34
34
|
className: cn(
|
|
35
35
|
"flex w-max animate-[marquee_var(--animation-duration)_var(--animation-direction)_linear_infinite] gap-2 py-1"
|
|
@@ -79,7 +79,10 @@ function MarqueeRows({
|
|
|
79
79
|
const chunkSize = Math.ceil(children.length / rows);
|
|
80
80
|
const chunks = [];
|
|
81
81
|
for (let i = 0; i < rows; i++) {
|
|
82
|
-
|
|
82
|
+
const chunk = children.slice(i * chunkSize, (i + 1) * chunkSize);
|
|
83
|
+
if (chunk.length !== 0) {
|
|
84
|
+
chunks.push(chunk);
|
|
85
|
+
}
|
|
83
86
|
}
|
|
84
87
|
return /* @__PURE__ */ jsx("div", { className: cn("overflow-hidden", className), ...rest, children: chunks.map((chunk, index) => /* @__PURE__ */ jsxs(
|
|
85
88
|
Marquee,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theguild/components",
|
|
3
|
-
"version": "9.3.0-alpha-
|
|
3
|
+
"version": "9.3.0-alpha-20250204181532-a488490061c5c8c8623a4030e8ee44b653ee872a",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/the-guild-org/docs",
|
|
6
6
|
"directory": "packages/components"
|