fix: Improve help screen rendering and docstring formatting
- Use Markdown widget for proper help text formatting - Fix extra blank lines in run_tui docstring - Resolves CodeRabbit actionable comments
This commit is contained in:
parent
e86bce7280
commit
65c552a35f
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ Text-based User Interface for managing Cognee knowledge graphs
|
|||
from typing import ClassVar
|
||||
from textual.app import App, ComposeResult
|
||||
from textual.binding import Binding
|
||||
from textual.widgets import Header, Footer, Static, Button
|
||||
from textual.widgets import Header, Footer, Static, Button, Markdown
|
||||
from textual.containers import VerticalScroll
|
||||
from textual.screen import Screen
|
||||
from textual.events import Key
|
||||
|
|
@ -103,7 +103,7 @@ class HelpScreen(Screen):
|
|||
def compose(self) -> ComposeResult:
|
||||
yield Header()
|
||||
with VerticalScroll():
|
||||
yield Static(self.help_text, markup=False)
|
||||
yield Static(self.help_text)
|
||||
yield Button("Close (Esc)", id="close", variant="primary")
|
||||
yield Footer()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue