on main help sign in
fix: layout calculations when editor has attachments (#2012)
8d3064fKujtim Hoxha
internal/ui/model/ui.go+3−1
@@ -2247,7 +2247,9 @@ func (m *UI) generateLayout(w, h int) layout {
2247
2247
2248 if !layout.editor.Empty() {
2248 if !layout.editor.Empty() {
2249 // Add editor margins 1 top and bottom
2249 // Add editor margins 1 top and bottom
2250+ if len(m.attachments.List()) == 0 {
2250− layout.editor.Min.Y += 1
2251+ layout.editor.Min.Y += 1
2252+ }
2251 layout.editor.Max.Y -= 1
2253 layout.editor.Max.Y -= 1
2252 }
2254 }
2253
2255