text-generation-webui-mirror/css
Th-Underscore bc0df8a518
UI: Add message versioning and navigation (integrated boogaplus extension)
- Created a new module (message_versioning.py) for managing message versioning logic and data storage
- Added relevant Gradio communication in ui_chat.py
- Updated chat.py to append messages to versioning history and other history-related operations
- Updated HTML generation to include message version navigation elements
- Implemented JavaScript functions for handling message version navigation, selection, and history management
- Added relevant CSS styling (handling all three message classes is a little messy, but changing the original class structure might be problematic)

Notes:
- Doesn't always update on first load via `shared.gradio['unique_id'].select()`
- No go-to-first or go-to-last nav arrows
- Some of the methods and variables are... long-winded
- Have only tested with a couple extensions, but this _shouldn't_ break anything and should be completely backwards-compatible
- Haven't put any documentation for controls (Ctrl+Left/Right Arrow for navigation, Ctrl+Up/Down Arrow as an alternative for selection)
- The original footer buttons aren't set to full opacity when the message is selected, only the new nav container
- Output file extension is `.boogaplus` cuz it's cool
- Tried using `None` as a placeholder in the history storage dict (`null` in the JSON) instead of always saving the text to save space, but sometimes leads to client-server issues
2025-05-04 14:57:19 -04:00
..
highlightjs UI: Fix code syntax highlighting 2024-07-22 23:08:48 -07:00
Inter Improved UI (#6575) 2024-12-17 00:47:41 -03:00
katex Improved instruct style (with syntax highlighting & LaTeX rendering) (#5936) 2024-04-26 10:13:11 -03:00
NotoSans Use Noto Sans font 2023-09-13 13:48:05 -07:00
chat_style-cai-chat-square.css Improved UI (#6575) 2024-12-17 00:47:41 -03:00
chat_style-cai-chat.css UI: Add a min-height to prevent constant scrolling during chat streaming 2025-05-02 23:45:58 -07:00
chat_style-Dark.css UI: Add a min-height to prevent constant scrolling during chat streaming 2025-05-02 23:45:58 -07:00
chat_style-messenger.css UI: increase the font weight of chat messages 2024-07-21 10:45:27 -07:00
chat_style-TheEncrypted777.css UI: Add a min-height to prevent constant scrolling during chat streaming 2025-05-02 23:45:58 -07:00
chat_style-wpp.css UI: increase the font weight of chat messages 2024-07-21 10:45:27 -07:00
html_instruct_style.css UI: Invert user/assistant message colors in instruct mode 2025-05-02 22:43:33 -07:00
html_readable_style.css Lint the CSS files 2023-10-20 13:02:18 -07:00
main.css UI: Add message versioning and navigation (integrated boogaplus extension) 2025-05-04 14:57:19 -04:00