Alejandro Cremades commited on
Commit
0d47bf1
1 Parent(s): df9758b

Bonus: show card search results as link buttons too

Browse files
Files changed (1) hide show
  1. streamlit_common/lib.py +1 -1
streamlit_common/lib.py CHANGED
@@ -14,7 +14,7 @@ def row_to_link(row: pd.DataFrame) -> None:
14
  cardname = row["name"]
15
  if row.name_ja is not "":
16
  cardname = f"{cardname} / {row.name_ja}"
17
- st.markdown(f"- [{cardname}]({row.link})")
18
 
19
 
20
  def row_to_button_link(row: pd.DataFrame) -> None:
 
14
  cardname = row["name"]
15
  if row.name_ja is not "":
16
  cardname = f"{cardname} / {row.name_ja}"
17
+ st.link_button(cardname, row.link)
18
 
19
 
20
  def row_to_button_link(row: pd.DataFrame) -> None: