mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 05:29:53 +00:00
small improvements
This commit is contained in:
parent
caea293759
commit
c24e3c18e0
11 changed files with 149 additions and 37 deletions
|
|
@ -26,7 +26,7 @@ func (h *helpCmp) SetBindings(k []key.Binding) {
|
|||
func (h *helpCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
switch msg := msg.(type) {
|
||||
case tea.WindowSizeMsg:
|
||||
h.width = 80
|
||||
h.width = 90
|
||||
h.height = msg.Height
|
||||
}
|
||||
return h, nil
|
||||
|
|
@ -62,7 +62,7 @@ func (h *helpCmp) render() string {
|
|||
var (
|
||||
pairs []string
|
||||
width int
|
||||
rows = 12 - 2
|
||||
rows = 14 - 2
|
||||
)
|
||||
for i := 0; i < len(bindings); i += rows {
|
||||
var (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue