fix: SFTP default to Local pane + fixed border height

- Default active pane changed from Remote to Local on SFTP init
- renderPane now takes maxH parameter for fixed border height
- paneStyle.Height(maxH) prevents border from shrinking/growing on scroll
- Stacked mode: maxH = t.height - 6; Side-by-side: t.height - 5
This commit is contained in:
swanadiva
2026-06-24 11:30:54 +07:00
parent 2e10308c75
commit 25a53d990b
3 changed files with 29 additions and 11 deletions
+4 -1
View File
@@ -68,7 +68,10 @@
✅ Stacked mode (<50 cols): render cuma ACTIVE pane (bukan 2 pane)
✅ Pane indicator bar: `[Local] Remote` — active disorot hijau (StatusBarStyle)
✅ Side-by-side mode (>=50 cols): tidak diubah, tetap 2 pane
`maxDisplay` tidak diubah (cuma 1 pane, full height)
Default active pane: Local (bukan Remote)
✅ Border height fix: `renderPane` sekarang terima `maxH` parameter, `paneStyle.Height(maxH)` → border selalu konsisten tingginya, tidak naik-turun sesuai scroll
✅ Stacked mode: `maxH = t.height - 6` (title + indicator + border + footer)
✅ Side-by-side mode: `maxH = t.height - 5` (title + border + footer)
---