fixed resizing not working

This commit is contained in:
eyjhb 2025-02-08 21:13:09 +01:00
parent 2e3e74e128
commit cb1839a5bc
Signed by: eyjhb
GPG key ID: 609F508E3239F920
4 changed files with 107 additions and 102 deletions

View file

@ -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":