mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-23 06:41:32 +03:00
Fix extraneous space
This commit is contained in:
parent
9f283458bf
commit
bb9042a6c0
@ -754,7 +754,7 @@ class NodeInfo(Container):
|
||||
color = Color.parse(possible_color)
|
||||
# value_text = Text.styled(possible_color, f"on {value_text}") # doesn't handle all Textual Color values, only Rich Color values
|
||||
value_text = Text.styled(possible_color, Style.from_color(bgcolor=color.rich_color, color=color.get_contrast_text().rich_color))
|
||||
value_text = Text.assemble(optional_keyword, " ", value_text)
|
||||
value_text = Text.assemble(optional_keyword, " " if optional_keyword else "", value_text)
|
||||
except ColorParseError:
|
||||
pass
|
||||
return Text.assemble(
|
||||
|
Loading…
Reference in New Issue
Block a user