mirror of
https://github.com/supleed2/go-chat.git
synced 2024-12-22 14:15:49 +00:00
Create v0.2.2 release, *actually* fix viewport wrap
This commit is contained in:
parent
3f3f4b6c80
commit
0b896e1611
|
@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
|
## [0.2.2] - 2024-06-01
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Messages *actually* wrap properly with terminal viewport width this time
|
||||||
|
|
||||||
## [0.2.1] - 2024-05-31
|
## [0.2.1] - 2024-05-31
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -65,7 +71,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- Go programs for [client](./tui/main.go) and [server](./server/main.go)
|
- Go programs for [client](./tui/main.go) and [server](./server/main.go)
|
||||||
- GitHub Actions release flow, including binaries
|
- GitHub Actions release flow, including binaries
|
||||||
|
|
||||||
[unreleased]: https://github.com/supleed2/go-chat/compare/v0.2.1...HEAD
|
[unreleased]: https://github.com/supleed2/go-chat/compare/v0.2.2...HEAD
|
||||||
|
[0.2.2]: https://github.com/supleed2/go-chat/releases/tag/v0.2.2
|
||||||
[0.2.1]: https://github.com/supleed2/go-chat/releases/tag/v0.2.1
|
[0.2.1]: https://github.com/supleed2/go-chat/releases/tag/v0.2.1
|
||||||
[0.2.0]: https://github.com/supleed2/go-chat/releases/tag/v0.2.0
|
[0.2.0]: https://github.com/supleed2/go-chat/releases/tag/v0.2.0
|
||||||
[0.1.2]: https://github.com/supleed2/go-chat/releases/tag/v0.1.2
|
[0.1.2]: https://github.com/supleed2/go-chat/releases/tag/v0.1.2
|
||||||
|
|
|
@ -181,7 +181,7 @@ func initModel(ctx context.Context, conn *ws.Conn, a args, tz time.Location) mod
|
||||||
showTim: a.Timestamps,
|
showTim: a.Timestamps,
|
||||||
tz: tz,
|
tz: tz,
|
||||||
history: vp,
|
history: vp,
|
||||||
idStyle: lipgloss.NewStyle(),
|
idStyle: lipgloss.NewStyle().Width(60),
|
||||||
pStyle: lipgloss.NewStyle().Bold(true),
|
pStyle: lipgloss.NewStyle().Bold(true),
|
||||||
help: help.New(),
|
help: help.New(),
|
||||||
recvCh: recvCh,
|
recvCh: recvCh,
|
||||||
|
@ -250,7 +250,8 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||||
m.history.Width = msg.Width
|
m.history.Width = msg.Width
|
||||||
m.history.GotoBottom()
|
m.history.GotoBottom()
|
||||||
m.input.Width = msg.Width - 3
|
m.input.Width = msg.Width - 3
|
||||||
m.help.Width = msg.Width - 1
|
m.idStyle = m.idStyle.Width(msg.Width)
|
||||||
|
m.help.Width = msg.Width
|
||||||
m.history.SetContent(m.viewMessages())
|
m.history.SetContent(m.viewMessages())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue