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:
+4
-1
@@ -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)
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user