vcom/vcom.toml
vrubelroman bba8783f10 Fix directory preview layout to exactly match browser pane columns
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.
2026-04-27 16:52:44 +03:00

43 lines
681 B
TOML

[startup]
left_path = ''
right_path = ''
[ui]
app_title = 'vcom'
theme = 'ayu-dark'
icon_mode = 'auto'
show_title_bar = true
show_footer = true
border = 'rounded'
path_display = 'smart'
pane_gap = 1
center_width_percent = 30
[browser]
show_hidden = true
dirs_first = true
human_readable_size = true
[browser.sort]
by = 'name'
reverse = false
[browser.columns]
name = true
size = true
modified = true
created = false
permissions = false
extension = false
[preview]
show_metadata = true
wrap_text = false
max_preview_bytes = 65536
directory_preview_limit = 80
[behavior]
confirm_delete = true
confirm_overwrite = true
calculate_dir_size_on_space = true
follow_symlinks = false