diff --git a/ax/core/analysis_card.py b/ax/core/analysis_card.py index 1c76068cfe9..2819eb59163 100644 --- a/ax/core/analysis_card.py +++ b/ax/core/analysis_card.py @@ -19,7 +19,10 @@ from plotly.offline import get_plotlyjs # Simple HTML template for rendering a card with a title, subtitle, and body with -# scrollable overflow. +# scrollable overflow. Subtitles are rendered in a
with max-height overflow +# so that any HTML content (tables, lists, etc.) is valid and clipped correctly +# in the collapsed state. A "See more"/"See less" toggle appears when content +# overflows (matching the web UI pattern). html_card_template = """
-
- {title_str} -

{subtitle_str}

-
+ {title_str} +
{subtitle_str}
+
{body_html}
+ """ # Simple HTML template for rendering a *group* card with a title, subtitle, and