mirror of
https://github.com/anotherhadi/ilovetui.git
synced 2026-10-05 10:58:26 +02:00
Change overlay display to allow bubblezone to work
Signed-off-by: Hadi <[email protected]>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user