Spaces:
Running
on
T4
Running
on
T4
sidebar fixed
Browse files- pages/Semantic_Search.py +18 -18
pages/Semantic_Search.py
CHANGED
@@ -50,27 +50,27 @@ st.markdown("""
|
|
50 |
</style>
|
51 |
""", unsafe_allow_html=True)
|
52 |
st.markdown("""
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
</style>
|
71 |
""", unsafe_allow_html=True)
|
72 |
|
73 |
|
|
|
74 |
#ps = PorterStemmer()
|
75 |
|
76 |
st.session_state.REGION = 'us-east-1'
|
|
|
50 |
</style>
|
51 |
""", unsafe_allow_html=True)
|
52 |
st.markdown("""
|
53 |
+
<style>
|
54 |
+
/* 1. Fix only the inner sidebar user content */
|
55 |
+
div[data-testid="stSidebarUserContent"] {
|
56 |
+
position: fixed;
|
57 |
+
top: 0;
|
58 |
+
left: 0;
|
59 |
+
height: 100vh;
|
60 |
+
overflow-y: auto;
|
61 |
+
width: inherit;
|
62 |
+
z-index: 999;
|
63 |
+
}
|
64 |
+
|
65 |
+
/* 2. Optional: Prevent double scroll bar from outer sidebar (only if needed) */
|
66 |
+
div[data-testid="stSidebarContent"] {
|
67 |
+
overflow: hidden !important;
|
68 |
+
}
|
69 |
+
</style>
|
|
|
70 |
""", unsafe_allow_html=True)
|
71 |
|
72 |
|
73 |
+
|
74 |
#ps = PorterStemmer()
|
75 |
|
76 |
st.session_state.REGION = 'us-east-1'
|