on main help sign in
chore: move the permissions dialog a bit up
3dfac0bKujtim Hoxha
internal/tui/components/dialogs/permissions/permissions.go+2
@@ -451,6 +451,7 @@ func (p *permissionDialogCmp) render() string {
451
451
452 p.positionRow = p.wHeight / 2
452 p.positionRow = p.wHeight / 2
453 p.positionRow -= (contentHeight + 9) / 2
453 p.positionRow -= (contentHeight + 9) / 2
454+ p.positionRow -= 3 // Move dialog slightly higher than middle
454
455
455 var contentHelp string
456 var contentHelp string
456 if p.supportsDiffView() {
457 if p.supportsDiffView() {
@@ -517,6 +518,7 @@ func (p *permissionDialogCmp) SetSize() tea.Cmd {
517 }
518 }
518 p.positionRow = p.wHeight / 2
519 p.positionRow = p.wHeight / 2
519 p.positionRow -= p.height / 2
520 p.positionRow -= p.height / 2
521+ p.positionRow -= 3 // Move dialog slightly higher than middle
520 p.positionCol = p.wWidth / 2
522 p.positionCol = p.wWidth / 2
521 p.positionCol -= p.width / 2
523 p.positionCol -= p.width / 2
522 return nil
524 return nil