Skip to content

Commit

Permalink
chore: not used
Browse files Browse the repository at this point in the history
  • Loading branch information
mistakenelf committed May 5, 2024
1 parent b118abe commit 4fee147
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion internal/tui/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ type model struct {
state sessionState
keyMap keys.KeyMap
activePane int
height int
config Config
showTextInput bool
textinput textinput.Model
Expand Down
1 change: 0 additions & 1 deletion internal/tui/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case tea.WindowSizeMsg:
halfSize := msg.Width / 2
height := msg.Height - statusbar.Height
m.height = height

cmds = append(cmds, m.image.SetSizeCmd(halfSize, height))
cmds = append(cmds, m.markdown.SetSizeCmd(halfSize, height))
Expand Down
2 changes: 1 addition & 1 deletion internal/tui/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (m model) View() string {
}

return lipgloss.JoinVertical(lipgloss.Top,
lipgloss.NewStyle().Height(m.height).Render(
lipgloss.NewStyle().Render(
lipgloss.JoinHorizontal(lipgloss.Top, leftBox, rightBox),
),
m.statusbar.View(),
Expand Down

0 comments on commit 4fee147

Please sign in to comment.