Root cause: renderPreviewPane() was stuffing directory entries into the viewport model via SetContent(), then rendering through renderPreviewContent() which wraps the viewport in an additional border+padding box. This reduced the effective content width by 4 characters compared to the browser pane's innerWidth (width-2), causing column misalignment where the date column would wrap to the next line. Fix: For directory previews, directly render entries using the same renderPaneRows() and renderColumnsHeader() functions as the browser pane, at the same innerWidth. A temporary BrowserPane is created with the directory entries, and renderPaneRows() is called with active=false, producing pixel-identical output to the main file browser. Removed renderDirectoryPreviewBody() which is no longer needed. |
||
|---|---|---|
| .. | ||
| icon_mode.go | ||
| image_overlay.go | ||
| keymap.go | ||
| model.go | ||
| pane.go | ||