Change overlay display to allow bubblezone to work

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-08-23 17:42:33 +02:00
parent b22ce7cbf7
commit 2fd1861339
4 changed files with 29 additions and 15 deletions
+1 -5
View File
@@ -24,11 +24,7 @@ func (m Model) Render(background string) string {
sw, sh := lipgloss.Width(stack), lipgloss.Height(stack)
x, y := placement(m.position, w, h, sw, sh)
compositor := lipgloss.NewCompositor(
lipgloss.NewLayer(background),
lipgloss.NewLayer(stack).X(x).Y(y).Z(1),
)
return compositor.Render()
return style.Overlay(background, stack, x, y)
}
func (m Model) View(width, height int) string {