on main help sign in
fix: commands height (#1954)
9604c92Kujtim Hoxha
internal/ui/dialog/commands.go+1−2
@@ -258,8 +258,7 @@ func (c *Commands) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
258
258
259 c.input.SetWidth(innerWidth - t.Dialog.InputPrompt.GetHorizontalFrameSize() - 1) // (1) cursor padding
259 c.input.SetWidth(innerWidth - t.Dialog.InputPrompt.GetHorizontalFrameSize() - 1) // (1) cursor padding
260
260
261− listHeight := min(height-heightOffset, c.list.Len())
261+ c.list.SetSize(innerWidth, height-heightOffset)
262− c.list.SetSize(innerWidth, listHeight)
263 c.help.SetWidth(innerWidth)
262 c.help.SetWidth(innerWidth)
264
263
265 rc := NewRenderContext(t, width)
264 rc := NewRenderContext(t, width)