georad commited on
Commit
2467c7e
·
verified ·
1 Parent(s): 132886a

Update pages/type_text.py

Browse files
Files changed (1) hide show
  1. pages/type_text.py +6 -1
pages/type_text.py CHANGED
@@ -41,8 +41,13 @@ def scrollToBottom():
41
  // - A div directly containing your dynamic content
42
  // Once you've found the correct container div,
43
  // note its class names (e.g., class="some-streamlit-class another-class") or its ID (e.g., id="some-id").
 
 
 
 
 
44
  // *** REPLACE THE SELECTOR BELOW with the correct one you found by inspecting your app's HTML ***
45
- const scrollableContainer = document.querySelector("flex flex-1 flex-col"); // <--- REPLACE THIS SELECTOR
46
  #const scrollableContainer = document.getElementById('your-container-id')); // <--- REPLACE THIS SELECTOR
47
 
48
  if (scrollableContainer) {
 
41
  // - A div directly containing your dynamic content
42
  // Once you've found the correct container div,
43
  // note its class names (e.g., class="some-streamlit-class another-class") or its ID (e.g., id="some-id").
44
+ // If you found a class name like st-emotion-cache-abcxyz,
45
+ // you'd change the line to: const scrollableContainer = document.querySelector('.st-emotion-cache-abcxyz');
46
+ // If you found multiple class names, you might use one that seems most specific, or combine them if necessary (e.g., .class1.class2).
47
+ // If you found an ID like my-streamlit-container,
48
+ // you'd change the line to: const scrollableContainer = document.getElementById('my-streamlit-container'); (and use getElementById instead of querySelector)
49
  // *** REPLACE THE SELECTOR BELOW with the correct one you found by inspecting your app's HTML ***
50
+ const scrollableContainer = document.querySelector('.flex flex-1 flex-col'); // <--- REPLACE THIS SELECTOR
51
  #const scrollableContainer = document.getElementById('your-container-id')); // <--- REPLACE THIS SELECTOR
52
 
53
  if (scrollableContainer) {