fixed resizing not working
This commit is contained in:
parent
2e3e74e128
commit
cb1839a5bc
4 changed files with 107 additions and 102 deletions
|
@ -64,6 +64,10 @@ func (m *feedEntriesModel) Init() tea.Cmd {
|
|||
|
||||
func (m *feedEntriesModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
switch msg := msg.(type) {
|
||||
case tea.WindowSizeMsg:
|
||||
// h, v := docStyle.GetFrameSize()
|
||||
// TODO: this is not ideal, hardcoding -2 here
|
||||
m.entries.SetSize(msg.Width, msg.Height-2)
|
||||
case tea.KeyMsg:
|
||||
switch msg.String() {
|
||||
case "enter":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue