mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 10:23:47 +08:00
## 🔍 Overview We want to show usage for models with credit allocations separately. ## 📷 Screenshots <img width="624" height="568" alt="image" src="https://github.com/user-attachments/assets/5f75399f-e17a-43b4-95b0-77d40bfd77ae" />
62 lines
1.1 KiB
SCSS
Vendored
62 lines
1.1 KiB
SCSS
Vendored
.ai-llm-list__credit-allocation .fk-d-tooltip__trigger {
|
|
width: 100%;
|
|
display: block;
|
|
cursor: auto;
|
|
}
|
|
|
|
.ai-credit-bar {
|
|
--credit-bar-color: rgb(75, 192, 192, 0.8);
|
|
margin-top: 0.5em;
|
|
width: 100%;
|
|
|
|
&__progress {
|
|
height: 0.75rem;
|
|
background: var(--primary-low);
|
|
border-radius: var(--d-border-radius-large);
|
|
overflow: hidden;
|
|
margin-bottom: 0.25em;
|
|
width: 100%;
|
|
}
|
|
|
|
&__fill {
|
|
height: 100%;
|
|
background: var(--credit-bar-color);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
&__text {
|
|
font-size: var(--font-down-1);
|
|
color: var(--primary-high);
|
|
}
|
|
|
|
&--warning {
|
|
.ai-credit-bar__fill {
|
|
background: var(--danger);
|
|
}
|
|
}
|
|
|
|
&--compact {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
margin-top: 0;
|
|
|
|
.ai-credit-bar__progress {
|
|
flex: 1;
|
|
margin-bottom: 0;
|
|
min-width: 60px;
|
|
}
|
|
|
|
.ai-credit-bar__text {
|
|
flex-shrink: 0;
|
|
font-size: var(--font-down-2);
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
}
|
|
|
|
.ai-credit-warning {
|
|
margin-top: 0.5em;
|
|
border-radius: var(--d-border-radius);
|
|
font-size: var(--font-down-1);
|
|
}
|