Skip to content

Commit

Permalink
small refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaya-Sem committed Aug 18, 2024
1 parent 3a7f098 commit 4e7e7ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions cmd/tables/connectionTable.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
3 changes: 1 addition & 2 deletions cmd/tables/timetableTable.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4e7e7ce

Please sign in to comment.