Only cow ! Thanks ! will try it myself
hello ! small question on your side you wished to display the message at the top of the messages container ? or started from bottom ?
I wrapped it and finally just showing the messages starting from the bottom, and no need for the workflows on my side nor an input element
nvm it’s broke the scrolling if the conv is too long so forget it
Hi - I too had lots of problems with scrolling. I kept trying to get my accordion to scroll to a specific anchor, but nothing worked (I am novice coder).
I found a simpler method. Instead of scrolling to a specific anchor, I use JS to make the page scroll down 30% of the page whenever the header is clicked.
I added this JS to body of the page:
function scrollByPercentage(percent) {
const scrollAmount = window.innerHeight * (percent / 100); // Calculate the scroll distance
window.scrollBy({
top: scrollAmount,
behavior: “smooth” // Smooth scrolling
});
}
And then I add this custom code as workflow on the header of the accordion
scrollByPercentage(30); // This will scroll down by 30% of the viewport height
This worked for me. Hope it works for you.