From 4e7e7cebc50f8feac63902da9a6cc9f72d9ab75c Mon Sep 17 00:00:00 2001 From: Kaya-Sem Date: Sun, 18 Aug 2024 09:44:41 +0200 Subject: [PATCH] small refactors --- cmd/tables/connectionTable.go | 2 -- cmd/tables/timetableTable.go | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/tables/connectionTable.go b/cmd/tables/connectionTable.go index e3aa851..3f11090 100644 --- a/cmd/tables/connectionTable.go +++ b/cmd/tables/connectionTable.go @@ -42,7 +42,6 @@ func (m *connectionTableModel) updateSelectedDetails() { selectedIndex := m.table.Cursor() selectedConnection := m.departures[selectedIndex] - // Update the selected details including the relative time m.selectedDetails = getDetailedConnectionInfo(selectedConnection) } else { m.selectedDetails = "No row selected" // Should never really happen @@ -76,7 +75,6 @@ func (m connectionTableModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { func (m connectionTableModel) View() string { if m.showMessage { - // dump detailed info instead return m.message } tableView := m.table.View() diff --git a/cmd/tables/timetableTable.go b/cmd/tables/timetableTable.go index c541669..f4c3989 100644 --- a/cmd/tables/timetableTable.go +++ b/cmd/tables/timetableTable.go @@ -77,8 +77,7 @@ func (m timetableTableModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, teaCmd } -// TODO: add rounded corners for Bram? -var detailsBoxStyle = lipgloss.NewStyle().Padding(1) //.Border(lipgloss.NormalBorder()) +var detailsBoxStyle = lipgloss.NewStyle().Padding(1) func (m timetableTableModel) View() string { if m.showMessage {