Skip to content

Commit

Permalink
hide panel title
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Aug 22, 2024
1 parent 0504088 commit 7521821
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/textual/widgets/_help_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class HelpPanel(Widget):
text-align: center;
text-style: bold;
dock: top;
display: none;
}
#widget-help {
Expand Down
9 changes: 5 additions & 4 deletions tests/test_resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,16 @@ def test_resolve_fraction_unit_stress_test():

# We're mainly checking for the absence of zero division errors,
# which is a reoccurring theme for this code.
for remaining_space in range(1, 101, 10):
for remaining_space in range(1, 51, 10):
for max_width in range(1, remaining_space):
styles.max_width = max_width

for width in range(1, remaining_space):
for width in range(1, remaining_space, 2):
size = Size(width, 24)
resolved_unit = resolve_fraction_unit(
[styles, styles, styles],
Size(width, 24),
Size(width, 24),
size,
size,
Fraction(remaining_space),
"width",
)
Expand Down

0 comments on commit 7521821

Please sign in to comment.