mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Wrap settings titles.
This commit is contained in:
parent
e0edfa68b1
commit
97c4168d13
@ -112,7 +112,8 @@ class AutoSettingsLayout(QGridLayout):
|
||||
raise TypeError(f"Unhandled option type: {description}")
|
||||
|
||||
def add_label(self, row: int, description: OptionDescription) -> None:
|
||||
text = f"<strong>{description.text}</strong>"
|
||||
wrapped_title = "<br />".join(textwrap.wrap(description.text, width=55))
|
||||
text = f"<strong>{wrapped_title}</strong>"
|
||||
if description.detail is not None:
|
||||
wrapped = "<br />".join(textwrap.wrap(description.detail, width=55))
|
||||
text += f"<br />{wrapped}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user