UI: Add message version navigation (#6947)

---------

Co-authored-by: oobabooga <112222186+oobabooga@users.noreply.github.com>
This commit is contained in:
Underscore 2025-05-27 21:54:18 -04:00 committed by GitHub
parent cc9b7253c1
commit 355b5f6c8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 262 additions and 8 deletions

View file

@ -1260,7 +1260,7 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
position: absolute;
bottom: -23px;
left: 0;
display: flex;
display: flex;
gap: 5px;
opacity: 0;
transition: opacity 0.2s;
@ -1456,3 +1456,42 @@ strong {
.dark .attachment-icon {
color: #ccc;
}
/* --- Simple Version Navigation --- */
.version-navigation {
position: absolute;
bottom: -23px;
right: 0;
display: flex;
align-items: center;
gap: 5px;
opacity: 0;
transition: opacity 0.2s;
}
.message:hover .version-navigation,
.user-message:hover .version-navigation,
.assistant-message:hover .version-navigation {
opacity: 1;
}
.version-nav-button {
padding: 2px 6px;
font-size: 12px;
min-width: auto;
}
.version-nav-button[disabled] {
opacity: 0.3;
cursor: not-allowed;
}
.version-position {
font-size: 11px;
color: currentColor;
font-family: monospace;
min-width: 35px;
text-align: center;
opacity: 0.8;
user-select: none;
}