More work

This commit is contained in:
2026-02-18 19:08:29 -06:00
parent 009d5701d2
commit 4066197ec1
3 changed files with 57 additions and 21 deletions

View File

@@ -167,7 +167,10 @@ func (w *JsonContent) Draw(screen tcell.Screen) {
if w.editable {
var key, val string
pts := strings.Split(txt, ":")
if len(pts) == 2 {
key, val = pts[0], pts[1]
}
wh.DrawText(w.x, y, key, st.Dim(dim).Bold(!dim), screen)
st = st.Reverse(true)
wh.DrawText(w.x, y, val, st.Dim(dim).Bold(!dim), screen)