fix: fsTree min width less than actual ( hack )

This commit is contained in:
2026-02-01 03:08:38 +00:00
parent 3f94a99bd0
commit 81cee3b10a
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -69,7 +69,7 @@ func newMdRenderer() *glamour.TermRenderer {
// styling in glamour can be better, I would rather have a fluent style api here
// https://github.com/charmbracelet/glamour/issues/294
mdStyleConfig := glStyles.TokyoNightStyleConfig
var margin uint = 2
var margin uint = 4
mdStyleConfig.Document.Margin = &margin
mdStyleConfig.Document.BlockPrefix = ""
mdStyleConfig.Document.BlockSuffix = ""
@@ -369,5 +369,5 @@ func (m NoteView) renderNote() string {
title += "\n"
}
return title + body
return "\n\n" + title + body
}
+3
View File
@@ -13,6 +13,9 @@ const (
// getUpdatedWindowSizes computes the widths for the file tree and note view
// based on the terminal dimensions and the desired tree width.
func getUpdatedWindowSizes(totalWidth, requestedTreeWidth, minTreeWidth int) (treeWidth, noteWidth int) {
// hack on next line, it's not quite correct and I won't investigate rn
minTreeWidth = minTreeWidth + 3
treeWidth = requestedTreeWidth
if treeWidth == 0 {