[client] Fix rendering of nodes containing empty strings
This commit is contained in:
parent
041f117df8
commit
d58f1e4fef
1 changed files with 5 additions and 1 deletions
|
|
@ -268,7 +268,11 @@ renderNode focused node =
|
|||
decorateFlags (nodeFlags node) $
|
||||
decorateFocus focused $
|
||||
decorateExpand (not $ OMap.null $ nodeChildren node) $
|
||||
padRight Max $ txtWrap $ nodeText node
|
||||
padRight Max $ txtWrap text
|
||||
where
|
||||
text
|
||||
| T.null $ nodeText node = " "
|
||||
| otherwise = nodeText node
|
||||
|
||||
nodeToTree :: (Ord n, Show n) => UiState n -> Path -> Node -> Maybe [WidgetTree n] -> WidgetTree n
|
||||
nodeToTree s path node maybeChildren = case uiEditor s of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue