bubbles icon indicating copy to clipboard operation
bubbles copied to clipboard

fix(help): add styled whitespace with configurable background

Open rrrodzilla opened this issue 1 year ago • 1 comments

Added WhitespaceStyle fields to both short and full help Styles struct, llowing customization of whitespace appearance between keys and descriptions. Previously whitespace was unstyled, now it matches the aesthetic of other elements and can be customized (e.g. with background colors for testing).

  • Added ShortWhitespace and FullWhitespace to Styles struct
  • Modified ShortHelpView to use styled whitespace between key and desc
  • Modified FullHelpView to use styled whitespace between key and desc
  • Added tests to verify whitespace styling behavior

Fixes #571

rrrodzilla avatar Dec 06 '24 18:12 rrrodzilla

Looks like this whitespace between the truncated keys and the ellipsis remains unstyled.

https://github.com/charmbracelet/bubbles/blob/a2a300a0065e3f212a59db1bb77b493ee2854aef/help/help.go#L228

adamgoose avatar Jan 12 '25 08:01 adamgoose