From 219cb5818962238722276004eeeaa8dd4583b1ef Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Tue, 24 Dec 2024 11:34:23 +0000 Subject: [PATCH 1/2] Clean up trailing whitespace --- src/textual/widgets/_footer.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/textual/widgets/_footer.py b/src/textual/widgets/_footer.py index 050624b809..3f02f44d83 100644 --- a/src/textual/widgets/_footer.py +++ b/src/textual/widgets/_footer.py @@ -48,7 +48,7 @@ class FooterKey(Widget): } &.-disabled { - text-style: dim; + text-style: dim; } &.-compact { @@ -58,7 +58,7 @@ class FooterKey(Widget): .footer-key--description { padding: 0 0 0 1; } - } + } } """ @@ -134,20 +134,20 @@ class Footer(ScrollableContainer, can_focus=False, can_focus_children=False): grid-gutter: 1; } FooterKey.-command-palette { - dock: right; + dock: right; padding-right: 1; - border-left: vkey $foreground 20%; + border-left: vkey $foreground 20%; } - &:ansi { - background: ansi_default; + &:ansi { + background: ansi_default; .footer-key--key { background: ansi_default; - color: ansi_magenta; + color: ansi_magenta; } .footer-key--description { background: ansi_default; - color: ansi_default; + color: ansi_default; } FooterKey:hover { text-style: underline; @@ -156,7 +156,7 @@ class Footer(ScrollableContainer, can_focus=False, can_focus_children=False): .footer-key--key { background: ansi_default; } - } + } FooterKey.-command-palette { background: ansi_default; border-left: vkey ansi_black; From 43b56b68ab1689bc5f7743db99b43c3d6e404b03 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Tue, 24 Dec 2024 11:35:30 +0000 Subject: [PATCH 2/2] Fix a typo in the Footer __init__ docstring --- src/textual/widgets/_footer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/widgets/_footer.py b/src/textual/widgets/_footer.py index 3f02f44d83..1df82724d1 100644 --- a/src/textual/widgets/_footer.py +++ b/src/textual/widgets/_footer.py @@ -189,7 +189,7 @@ def __init__( id: The ID of the widget in the DOM. classes: The CSS classes for the widget. disabled: Whether the widget is disabled or not. - show_command_palette: Show key binding to command palette, on the right of the footer. + show_command_palette: Show key binding to invoke the command palette, on the right of the footer. """ super().__init__( *children,