jayash391 commited on
Commit
29da93d
·
verified ·
1 Parent(s): d371680

Update sherlock2.py

Browse files
Files changed (1) hide show
  1. sherlock2.py +5 -5
sherlock2.py CHANGED
@@ -346,17 +346,17 @@ def main():
346
  st.markdown(
347
  """
348
  <script>
349
- function fixInputToBottom() {
350
  const inputContainer = document.querySelector('.stTextInput');
351
  if (inputContainer) {
352
- inputContainer.style.position = 'fixed';
353
- inputContainer.style.bottom = '20px';
354
  inputContainer.style.left = '20px';
355
  inputContainer.style.right = '20px';
356
  inputContainer.style.zIndex = '999';
357
- }
358
  }
359
- window.addEventListener('load', fixInputToBottom);
 
360
  </script>
361
  """,
362
  unsafe_allow_html=True
 
346
  st.markdown(
347
  """
348
  <script>
349
+ function fixInputToTop() {
350
  const inputContainer = document.querySelector('.stTextInput');
351
  if (inputContainer) {
352
+ inputContainer.style.position = 'sticky';
353
+ inputContainer.style.top = '20px';
354
  inputContainer.style.left = '20px';
355
  inputContainer.style.right = '20px';
356
  inputContainer.style.zIndex = '999';
 
357
  }
358
+ }
359
+ window.addEventListener('load', fixInputToTop);
360
  </script>
361
  """,
362
  unsafe_allow_html=True