diff --git a/src/app.tsx b/src/app.tsx index 8949fb3..e7d8ff5 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -1852,8 +1852,17 @@ function Rail({ ) })}
-
- +
+
-
- +
+ - {startSlot ?
{startSlot}
: null} -
- {children} -
+ {startSlot ? ( +
+ {startSlot} +
+ ) : null} + {children ? ( +
+ {children} +
+ ) : null} {endSlot ?
{endSlot}
: null} {endHoverSlot && hovered ? (
setOpen(true)} onMouseLeave={() => setOpen(false)} > diff --git a/tests/wave6-p2.test.ts b/tests/wave6-p2.test.ts index c15027a..ea4f83d 100644 --- a/tests/wave6-p2.test.ts +++ b/tests/wave6-p2.test.ts @@ -115,7 +115,7 @@ describe('wave 6 p2 edge fade spike', () => { const top = edgeFadeBackground('#101010', 'top') expect(top.type).toBe('linear-gradient') expect(top.angle).toBe(180) - expect(top.stops[0].color).toBe('#101010') + expect(top.stops[0].color).toBe('#10101048') expect(top.stops[1].color).toBe('#10101000') const app = readFileSync(join(root, 'src/app.tsx'), 'utf8') expect(app).toContain('EdgeFadeFrame')