mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Wrap settings titles.
This commit is contained in:
parent
ac5c13663b
commit
83916b9fb0
@ -128,7 +128,8 @@ class AutoSettingsLayout(QGridLayout):
|
|||||||
raise TypeError(f"Unhandled option type: {description}")
|
raise TypeError(f"Unhandled option type: {description}")
|
||||||
|
|
||||||
def add_label(self, row: int, description: OptionDescription) -> None:
|
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:
|
if description.detail is not None:
|
||||||
wrapped = "<br />".join(textwrap.wrap(description.detail, width=55))
|
wrapped = "<br />".join(textwrap.wrap(description.detail, width=55))
|
||||||
text += f"<br />{wrapped}"
|
text += f"<br />{wrapped}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user