georad commited on
Commit
50eb008
·
verified ·
1 Parent(s): d618198

Update pages/type_text.py

Browse files
Files changed (1) hide show
  1. pages/type_text.py +3 -4
pages/type_text.py CHANGED
@@ -39,12 +39,11 @@ def scrollToBottom():
39
  // Common candidates:
40
  // - Elements with classes like 'stAppViewContainer', 'main', 'block-container'
41
  // - A div directly containing your dynamic content
42
-
43
- // Let's try a common Streamlit container class. You might need to adjust this.
44
  // Once you've found the correct container div,
45
  // note its class names (e.g., class="some-streamlit-class another-class") or its ID (e.g., id="some-id").
46
- const scrollableContainer = document.querySelector(class="flex min-h-dvh flex-col"); // Example selector
47
- #const scrollableContainer = document.getElementById('your-container-id')); // Example selector
 
48
 
49
  if (scrollableContainer) {
50
  console.log("Scrollable container found. Scrolling...");
 
39
  // Common candidates:
40
  // - Elements with classes like 'stAppViewContainer', 'main', 'block-container'
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 min-h-dvh flex-col"); // <--- REPLACE THIS SELECTOR
46
+ #const scrollableContainer = document.getElementById('your-container-id')); // <--- REPLACE THIS SELECTOR
47
 
48
  if (scrollableContainer) {
49
  console.log("Scrollable container found. Scrolling...");