Browse Source

fix: keep proper alignment in unfoldable

nottui-full-sensor
Simon Cruanes 7 months ago
committed by Frédéric Bour
parent
commit
a24e7f421c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/nottui-widgets/nottui_widgets.ml

+ 1
- 1
lib/nottui-widgets/nottui_widgets.ml View File

@@ -420,7 +420,7 @@ let unfoldable ?(folded_by_default=true) summary (f: unit -> Ui.t Lwd.t) : Ui.t
(* pad summary with a "> " when it's opened *)
let summary =
Lwd.get opened >>= function
| true -> Lwd.map (Ui.join_x (string "🔽")) summary
| true -> Lwd.map (Ui.join_x (string "🔽 ")) summary
| false -> Lwd.map (Ui.join_x (string "▶️ ")) summary
in
let cursor ~x:_ ~y:_ = function


Loading…
Cancel
Save