UX: start progress dot animation instantly if it's the only content (#437)

This commit is contained in:
Kris 2024-01-22 13:10:51 -05:00 committed by GitHub
parent 4b4aedb50f
commit 900df4e8c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 11 deletions

View File

@ -57,20 +57,28 @@ article.streaming nav.post-controls .actions button.cancel-streaming {
}
}
article.streaming .cooked .progress-dot::after {
article.streaming .cooked {
.progress-dot::after {
content: "\25CF";
font-family: Söhne Circle, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
Cantarell, Noto Sans, sans-serif;
font-family: Söhne Circle, system-ui, -apple-system, Segoe UI, Roboto,
Ubuntu, Cantarell, Noto Sans, sans-serif;
line-height: normal;
margin-left: 0.25rem;
vertical-align: baseline;
animation: flashing 1.5s 3s infinite;
display: inline-block;
font-size: 1rem;
color: var(--tertiary-medium);
}
> .progress-dot:only-child::after {
// if the progress dot is the only content
// we are likely waiting longer for a response
// so it can start animating instantly
animation: flashing 1.5s infinite;
}
}
.ai-bot-available-bot-options {
.ai-bot-available-bot-content {
color: var(--primary-high);