Skip to content

Commit

Permalink
Explore page fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
clr-li authored and devxpy committed Dec 14, 2023
1 parent 4d47983 commit 94c99a8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ def _render_non_featured(page_cls):

col1, col2 = gui.columns([1, 2])
with col1:
with gui.link(to=page.app_url()):
render_image(page, state)
render_image(page, state)

with col2:
# render_description(page, state, total_runs)
Expand All @@ -30,15 +29,15 @@ def _render_as_featured(page_cls):
page = page_cls()
state = page.recipe_doc_sr().to_dict()
# total_runs = page.get_total_runs()
with gui.link(to=page.app_url()):
render_image(page, state)
render_image(page, state)
# render_description(page, state, total_runs)
render_description(page, state)

def render_image(page, state):
gui.image(
page.get_recipe_image(state),
style={"border-radius": 5, "pointer-events": "none"},
href=page.app_url(),
style={"border-radius": 5},
)

def render_description(page, state):
Expand Down

0 comments on commit 94c99a8

Please sign in to comment.