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:
@@ -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(
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user