on main help sign in
fix: layout calculations when editor has attachments (#2012)
commit8d3064ffe778438dae209f3520d6449e2ec60bdf authorKujtim Hoxha <kujtimii.h@gmail.com> dateTue 27 Jan 2026, 15:28 (9 months ago) parent5e384b2
1 file changed+3−1
internal/ui/model/ui.go+3−1
internal/ui/model/ui.go+3−1
@@ -2247,7 +2247,9 @@ func (m *UI) generateLayout(w, h int) layout {
22472247
22482248 if !layout.editor.Empty() {
22492249 // Add editor margins 1 top and bottom
2250− layout.editor.Min.Y += 1
2250+ if len(m.attachments.List()) == 0 {
2251+ layout.editor.Min.Y += 1
2252+ }
22512253 layout.editor.Max.Y -= 1
22522254 }
22532255