fix: Mount header widget and add 'm' keybinding for toggle mode

- Header widget was created but never mounted in compose()
- Added 'm' keybinding for toggle_mode (switch markdown/HTML view)
This commit is contained in:
Bendt
2025-12-29 10:58:34 -05:00
parent 16995a4465
commit 279beeabcc
2 changed files with 2 additions and 0 deletions

View File

@@ -128,6 +128,7 @@ class EmailViewerApp(App):
Binding("3", "focus_3", "Focus Envelopes Panel"), Binding("3", "focus_3", "Focus Envelopes Panel"),
Binding("4", "focus_4", "Focus Main Content"), Binding("4", "focus_4", "Focus Main Content"),
Binding("w", "toggle_main_content", "Toggle Message View Window"), Binding("w", "toggle_main_content", "Toggle Message View Window"),
Binding("m", "toggle_mode", "Toggle Markdown/HTML"),
] ]
BINDINGS.extend( BINDINGS.extend(

View File

@@ -302,6 +302,7 @@ class ContentContainer(ScrollableContainer):
) )
def compose(self): def compose(self):
yield self.header
yield self.content yield self.content
yield self.html_content yield self.html_content