Chat User Scroll Markers - Simple CSS Version & Updated Advanced Version #4437
entitycs
started this conversation in
Show and tell
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
This pure CSS solution mimics my forked JS solution, with the following differences:
Highly accessible, also through keyboard inputs!
...and of course, modifiable via css 😏
Just throw this into style.css, in place of the .chat-history selector (or just insert the last two rules in the selector from this example, along with the remaining css that follows).
You now have an easy way to navigate through the start of each assistant response, by way of the ability to navigate back to each of your chat prompts within the conversation. The styles are already set up to use some form of theming, but I leave the rest to you.
Thumb-aligning JS version
It's really looking like in order to be pixel-perfect with the javascript thumb-aligning marker version, I'd have to create a custom scrollbar altogether - else some browser / phone, using some OS / browser, or some completely viable OS accessibility setting is going to break the alignment in some cases.
All reactions