From 972b20eb55acf5cf98c92f8b21e8bb6bb5958a8c Mon Sep 17 00:00:00 2001 From: itexpert228 <67105314+fdaser1337@users.noreply.github.com> Date: Mon, 20 Jul 2026 19:21:27 +0300 Subject: [PATCH] fix: dashboard layout overflow - remove forced panel height, fix contentH calculation --- ui/ui.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ui/ui.go b/ui/ui.go index 30c7952..7060fec 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -811,8 +811,8 @@ func (m *model) handleJournalKeys(msg tea.KeyMsg) (tea.Cmd, bool) { } func (m *model) recalculateTableSizes() { - // Высота под таблицы: убираем верхние 16 строк (шапка, карточки, вкладки, строка помощи) - tableHeight := m.height - 17 + // header(1) + KPI(4) + tabs(2) + tab-title(1) + helpbar(1) = 9 строк + tableHeight := m.height - 10 if tableHeight < 4 { tableHeight = 4 } @@ -1678,7 +1678,8 @@ func (m model) renderTabs() string { } func (m model) renderTabContent() string { - contentH := m.height - 17 + // header=1, KPIcards=4, tabs=2, helpbar=1, margin=1 → 9 строк сверху/снизу + contentH := m.height - 9 if contentH < 4 { contentH = 4 } @@ -1838,7 +1839,6 @@ func (m model) renderOverview(h int) string { leftPanel := lipgloss.NewStyle(). Width(leftW). - Height(h). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color(ColorBorder)). Padding(1, 2). @@ -1867,7 +1867,6 @@ func (m model) renderOverview(h int) string { rightPanel := lipgloss.NewStyle(). Width(rightW). - Height(h). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color(ColorBorder)). Padding(1, 2).