Resize and rearrange tree and debug boxes
This commit is contained in:
parent
3d2ae02479
commit
3ee771e536
1 changed files with 2 additions and 2 deletions
|
|
@ -55,8 +55,8 @@ newClientState node = ClientState
|
|||
clientDraw :: ClientState -> [Widget ResourceName]
|
||||
clientDraw cs = [joinBorders $ withBorderStyle unicode $ tree <+> debug]
|
||||
where
|
||||
tree = borderWithLabel (txt "Tree") $ renderTree boxDrawingBranching (csEditor cs) (csTree cs)
|
||||
debug = borderWithLabel (txt "Debug") $ txtWrap $ T.pack $ show $ csTree cs
|
||||
tree = borderWithLabel (txt "Tree") $ hLimit 50 $ renderTree boxDrawingBranching (csEditor cs) (csTree cs) <=> fill ' '
|
||||
debug = borderWithLabel (txt "Debug") $ txtWrap (T.pack $ show $ csTree cs) <=> fill ' '
|
||||
|
||||
isQuitEvent :: BrickEvent a b -> Bool
|
||||
isQuitEvent (VtyEvent (Vty.EvKey (Vty.KChar 'q') [])) = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue