mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Stop wrapping the spacer as Text
It's not needed. It has no style of its own. It's just a space.
This commit is contained in:
@@ -165,7 +165,7 @@ class ToggleButton(Static, can_focus=True):
|
||||
button = self._button
|
||||
label = self._label.copy()
|
||||
label.stylize(self.get_component_rich_style("toggle--label", partial=True))
|
||||
spacer = Text(" " if label else "")
|
||||
spacer = " " if label else ""
|
||||
return (
|
||||
Text.assemble(button, spacer, label)
|
||||
if self._button_first
|
||||
|
||||
Reference in New Issue
Block a user