Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,19 +36,43 @@ CROSS_NUDGE = 0.02
|
|
| 36 |
# Page / CSS
|
| 37 |
# =========================
|
| 38 |
st.set_page_config(page_title="ST_GeoMech_UCS", page_icon="logo.png", layout="wide")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
# Hide file-uploader helper text + center dataframes (headers & cells)
|
| 41 |
st.markdown("""
|
| 42 |
<style>
|
| 43 |
-
/*
|
|
|
|
|
|
|
| 44 |
section[data-testid="stFileUploader"] div[data-testid="stMarkdownContainer"] {
|
| 45 |
display: none !important;
|
| 46 |
}
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
</style>
|
| 53 |
""", unsafe_allow_html=True)
|
| 54 |
|
|
|
|
| 36 |
# Page / CSS
|
| 37 |
# =========================
|
| 38 |
st.set_page_config(page_title="ST_GeoMech_UCS", page_icon="logo.png", layout="wide")
|
| 39 |
+
st.markdown("""
|
| 40 |
+
<style>
|
| 41 |
+
/* Reusable logo style */
|
| 42 |
+
.brand-logo { width: 100px; height: auto; object-fit: contain; }
|
| 43 |
+
|
| 44 |
+
/* Sidebar header layout */
|
| 45 |
+
.sidebar-header { display:flex; align-items:center; gap:12px; }
|
| 46 |
+
.sidebar-header .text h1 { font-size: 1.05rem; margin:0; line-height:1.1; }
|
| 47 |
+
.sidebar-header .text .tag { font-size: .85rem; color:#6b7280; margin:2px 0 0; }
|
| 48 |
+
</style>
|
| 49 |
+
""", unsafe_allow_html=True)
|
| 50 |
|
| 51 |
# Hide file-uploader helper text + center dataframes (headers & cells)
|
| 52 |
st.markdown("""
|
| 53 |
<style>
|
| 54 |
+
/* Keep the uploader and its Browse button, but hide the drag/drop helper lines */
|
| 55 |
+
|
| 56 |
+
/* Older builds (helper wrapped in a Markdown container) */
|
| 57 |
section[data-testid="stFileUploader"] div[data-testid="stMarkdownContainer"] {
|
| 58 |
display: none !important;
|
| 59 |
}
|
| 60 |
+
|
| 61 |
+
/* 1.31–1.34 style (first child inside the dropzone is the helper row) */
|
| 62 |
+
section[data-testid="stFileUploader"] [data-testid="stFileUploaderDropzone"] > div:first-child {
|
| 63 |
+
display: none !important;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
/* 1.35+ explicit helper container */
|
| 67 |
+
section[data-testid="stFileUploader"] [data-testid="stFileUploaderInstructions"] {
|
| 68 |
+
display: none !important;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
/* Fallback: remove any paragraph/small text inside the uploader */
|
| 72 |
+
section[data-testid="stFileUploader"] p,
|
| 73 |
+
section[data-testid="stFileUploader"] small {
|
| 74 |
+
display: none !important;
|
| 75 |
+
}
|
| 76 |
</style>
|
| 77 |
""", unsafe_allow_html=True)
|
| 78 |
|