1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-12-02 20:22:52 +00:00

estimate tokens

This commit is contained in:
Laura
2025-09-17 22:52:22 +02:00
parent 01e11c5c55
commit f2a6de95a6
5 changed files with 279 additions and 4 deletions

View File

@@ -833,6 +833,8 @@ body:not(.loading) #loading {
padding-right: 14px;
border-radius: 6px;
border: 1px solid #363a4f;
overflow: hidden;
min-width: 140px;
}
.files .file .name {
@@ -847,14 +849,32 @@ body:not(.loading) #loading {
flex-shrink: 0;
}
.files .file .tokens {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(4px);
font-size: 13px;
pointer-events: none;
opacity: 0;
transition: 150ms;
}
.files .file:hover .tokens {
opacity: 1;
}
.files .file button.remove {
content: "";
position: absolute;
background-image: url(icons/remove.svg);
width: 16px;
height: 16px;
top: 1px;
right: 1px;
top: 0;
right: 0;
opacity: 0;
transition: 150ms;
}
@@ -1115,6 +1135,11 @@ label[for="reasoning-tokens"] {
background-image: url(icons/attach.svg);
}
#upload.loading {
animation: rotating 1.2s linear infinite;
background-image: url(icons/spinner.svg);
}
#json,
#search,
#scrolling,