d
This commit is contained in:
@@ -2008,10 +2008,12 @@ class ItemDetailView(ResultTable):
|
||||
self,
|
||||
title: str = "",
|
||||
item_metadata: Optional[Dict[str, Any]] = None,
|
||||
detail_title: Optional[str] = None,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(title, **kwargs)
|
||||
self.item_metadata = item_metadata or {}
|
||||
self.detail_title = detail_title
|
||||
|
||||
def to_rich(self):
|
||||
"""Render the item details panel above the standard results table."""
|
||||
@@ -2097,9 +2099,10 @@ class ItemDetailView(ResultTable):
|
||||
elements = []
|
||||
|
||||
if has_details:
|
||||
detail_title = str(self.detail_title or "Item Details").strip() or "Item Details"
|
||||
elements.append(Panel(
|
||||
details_table,
|
||||
title="[bold green]Item Details[/bold green]",
|
||||
details_table,
|
||||
title=f"[bold green]{detail_title}[/bold green]",
|
||||
border_style="green",
|
||||
padding=(1, 2)
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user