fixes to email display

This commit is contained in:
Tim Bendt
2025-05-12 10:40:01 -06:00
parent a7a2cfe8dc
commit 2fcad5700d
4 changed files with 82 additions and 31 deletions

View File

@@ -164,7 +164,7 @@ class EmailViewerApp(App):
return (envelope for envelope in self.all_envelopes if envelope.get("id"))
def watch_status_title(self, old_status_title: str, new_status_title: str) -> None:
self.query_one("#main_content").border_title = new_status_title
self.query_one(ContentContainer).border_title = new_status_title
def watch_sort_order_ascending(self, old_value: bool, new_value: bool) -> None:
"""Update the border title of the envelopes list when the sort order changes."""
@@ -223,7 +223,7 @@ class EmailViewerApp(App):
logging.info(f"new_message_id: {new_message_id}, type: {type(new_message_id)}")
logging.info(f"message_metadata keys: {list(self.message_metadata.keys())}")
content_container = self.query_one("#main_content")
content_container = self.query_one(ContentContainer)
content_container.display_content(new_message_id)
if new_message_id in self.message_metadata: