Update my_pages/home.py
Browse files- my_pages/home.py +4 -4
my_pages/home.py
CHANGED
|
@@ -16,7 +16,7 @@ def render():
|
|
| 16 |
cursor: pointer;
|
| 17 |
border: none !important;
|
| 18 |
display: inline!important;
|
| 19 |
-
font-size:
|
| 20 |
font-weight: bold;
|
| 21 |
}
|
| 22 |
button[kind="primary"]:hover {
|
|
@@ -60,9 +60,9 @@ def render():
|
|
| 60 |
# string_to_add =
|
| 61 |
|
| 62 |
# Join with LaTeX line breaks
|
| 63 |
-
|
| 64 |
-
button_clicked_dict[page] = st.button(rf"$\small\text{{{text[0]}}}$", type="primary")
|
| 65 |
-
|
| 66 |
|
| 67 |
for page in button_clicked_dict:
|
| 68 |
if button_clicked_dict[page]:
|
|
|
|
| 16 |
cursor: pointer;
|
| 17 |
border: none !important;
|
| 18 |
display: inline!important;
|
| 19 |
+
font-size: 30px;
|
| 20 |
font-weight: bold;
|
| 21 |
}
|
| 22 |
button[kind="primary"]:hover {
|
|
|
|
| 60 |
# string_to_add =
|
| 61 |
|
| 62 |
# Join with LaTeX line breaks
|
| 63 |
+
latex_content = r"$\small" + r"\\".join([rf"\text{{{line}}}" for line in text]) + r"$"
|
| 64 |
+
# button_clicked_dict[page] = st.button(rf"$\small\text{{{text[0]}}}$", type="primary")
|
| 65 |
+
button_clicked_dict[page] = st.button(latex_content, type="primary")
|
| 66 |
|
| 67 |
for page in button_clicked_dict:
|
| 68 |
if button_clicked_dict[page]:
|