From 42a8f4fce7103dcb91ff9ab7713061f7ffff4e99 Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Fri, 26 Jul 2024 17:21:10 +0530 Subject: [PATCH] related workflows: Add className to st.link and consolidate markdown block --- daras_ai_v2/base.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/daras_ai_v2/base.py b/daras_ai_v2/base.py index 1a181d2b5..6c344e4a3 100644 --- a/daras_ai_v2/base.py +++ b/daras_ai_v2/base.py @@ -980,22 +980,19 @@ def _render(page_cls: typing.Type[BasePage]): state = root_run.saved_run.to_dict() preview_image = page.get_explore_image() - with st.link(to=page.app_url()): + with st.link(to=page.app_url(), className="text-decoration-none"): st.html( # language=html f"""
""" ) - st.markdown( - f"###### {root_run.title or page.title}", - ) - with st.link(to=page.app_url(), className="text-decoration-none"): + st.markdown(f"###### {root_run.title or page.title}") st.caption( truncate_text_words( root_run.notes or page.preview_description(state), maxlen=210, - ), + ) ) grid_layout(4, page_clses, _render)