Spaces:
Running
Running
Fix Page Not Fund (#2)
Browse files- fix - Page Not Fund (80cebd71803aa7d62635aeae7e4389d26773e2b9)
Co-authored-by: Y <[email protected]>
- app/backend/data_page.py +7 -5
app/backend/data_page.py
CHANGED
@@ -124,16 +124,16 @@ def render_page(group_name):
|
|
124 |
/* Download Button */
|
125 |
button[data-testid="stBaseButton-secondary"] {
|
126 |
float: right;
|
127 |
-
|
128 |
}
|
129 |
/* Toast On The Top*/
|
130 |
div[data-testid="stToastContainer"] {
|
131 |
position: fixed !important;
|
132 |
z-index: 2147483647 !important;
|
133 |
}
|
134 |
-
|
135 |
</style>
|
136 |
-
|
137 |
""", unsafe_allow_html=True)
|
138 |
|
139 |
# logo
|
@@ -383,7 +383,8 @@ def render_page(group_name):
|
|
383 |
def share_url():
|
384 |
state = grid.grid_state
|
385 |
if state:
|
386 |
-
share_link = f'{BASE_URL.replace("_", "-")}{group_name}/?grid_state={compress_msgpack(state)}'
|
|
|
387 |
else:
|
388 |
share_link = f'{BASE_URL.replace("_", "-")}{group_name}'
|
389 |
st.write(share_link)
|
@@ -392,7 +393,8 @@ def render_page(group_name):
|
|
392 |
theme = theme.get("base")
|
393 |
else:
|
394 |
theme = "light"
|
395 |
-
st_copy_to_clipboard(share_link, before_copy_label='📋Push to copy', after_copy_label='✅Text copied!',
|
|
|
396 |
|
397 |
share_btn = st.button("Share this page", icon=":material/share:")
|
398 |
|
|
|
124 |
/* Download Button */
|
125 |
button[data-testid="stBaseButton-secondary"] {
|
126 |
float: right;
|
127 |
+
|
128 |
}
|
129 |
/* Toast On The Top*/
|
130 |
div[data-testid="stToastContainer"] {
|
131 |
position: fixed !important;
|
132 |
z-index: 2147483647 !important;
|
133 |
}
|
134 |
+
|
135 |
</style>
|
136 |
+
|
137 |
""", unsafe_allow_html=True)
|
138 |
|
139 |
# logo
|
|
|
383 |
def share_url():
|
384 |
state = grid.grid_state
|
385 |
if state:
|
386 |
+
share_link = f'{BASE_URL.replace("_", "-")}{group_name}/?grid_state={compress_msgpack(state)}' if not is_section(
|
387 |
+
group_name) else f'{BASE_URL.replace("_", "-")}?grid_state={compress_msgpack(state)}'
|
388 |
else:
|
389 |
share_link = f'{BASE_URL.replace("_", "-")}{group_name}'
|
390 |
st.write(share_link)
|
|
|
393 |
theme = theme.get("base")
|
394 |
else:
|
395 |
theme = "light"
|
396 |
+
st_copy_to_clipboard(share_link, before_copy_label='📋Push to copy', after_copy_label='✅Text copied!',
|
397 |
+
theme=theme)
|
398 |
|
399 |
share_btn = st.button("Share this page", icon=":material/share:")
|
400 |
|