Skip to content

Commit

Permalink
chore: change list padding
Browse files Browse the repository at this point in the history
  • Loading branch information
dhth committed Mar 20, 2024
1 parent a9eb25a commit eac895f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type Stack struct {
}

func (stack Stack) Title() string {
return fmt.Sprintf("%s", RightPadTrim(stack.Name, listWidth-20))
return fmt.Sprintf("%s", RightPadTrim(stack.Name, int(float64(listWidth)*0.8)))
}
func (stack Stack) Description() string {
var status string
Expand All @@ -51,7 +51,7 @@ func (stack Stack) Description() string {
if stack.Err != nil {
desc = stack.Err.Error()
}
return fmt.Sprintf("@%s %s", RightPadTrim(desc, listWidth-20), status)
return fmt.Sprintf("@%s %s", RightPadTrim(desc, int(float64(listWidth)*0.6)), status)
}
func (stack Stack) FilterValue() string { return stack.Name }

Expand Down

0 comments on commit eac895f

Please sign in to comment.