mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat: add session & account total consumption cards with time filtering and full history discovery
This commit is contained in:
@@ -466,6 +466,155 @@ body {
|
||||
margin: 2px 0;
|
||||
}
|
||||
|
||||
.consumption-header-row {
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.time-filter-bar {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 3px;
|
||||
background: var(--secondary, #f0f2f5);
|
||||
padding: 2px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border, #e2e5e9);
|
||||
}
|
||||
|
||||
.time-chip {
|
||||
padding: 2px 7px;
|
||||
font-size: 11px;
|
||||
line-height: 1.35;
|
||||
border-radius: 4px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--muted-foreground, #656d76);
|
||||
cursor: pointer;
|
||||
transition: background-color 0.15s ease, color 0.15s ease;
|
||||
}
|
||||
|
||||
.time-chip:hover {
|
||||
color: var(--foreground, #1f2328);
|
||||
}
|
||||
|
||||
.time-chip.active {
|
||||
background: var(--card, #ffffff);
|
||||
color: var(--bar-blue);
|
||||
font-weight: 600;
|
||||
box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
|
||||
}
|
||||
|
||||
.custom-time-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
padding: 6px 8px;
|
||||
background: var(--secondary, #f4f6f8);
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 11.5px;
|
||||
}
|
||||
|
||||
.time-input {
|
||||
flex: 1;
|
||||
min-width: 125px;
|
||||
padding: 3px 5px;
|
||||
font-size: 11px;
|
||||
color: var(--foreground, #1f2328);
|
||||
background: var(--card, #ffffff);
|
||||
border: 1px solid var(--border, #d0d7de);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.consumption-cards-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
@media (max-width: 380px) {
|
||||
.consumption-cards-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.consumption-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
padding: 9px 10px;
|
||||
background: var(--secondary, #f4f6f8);
|
||||
border: 1px solid var(--border, #e2e5e9);
|
||||
border-radius: var(--radius-md);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.consumption-card.account-card {
|
||||
background: color-mix(in srgb, var(--bar-blue) 5%, var(--secondary, #f4f6f8));
|
||||
border-color: color-mix(in srgb, var(--bar-blue) 22%, var(--border, #e2e5e9));
|
||||
}
|
||||
|
||||
.cons-card-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.cons-card-title {
|
||||
font-size: 11.5px;
|
||||
font-weight: 600;
|
||||
color: var(--foreground, #1f2328);
|
||||
}
|
||||
|
||||
.cons-card-badge {
|
||||
font-size: 10.5px;
|
||||
padding: 0 5px;
|
||||
border-radius: 999px;
|
||||
background: var(--card, #ffffff);
|
||||
color: var(--muted-foreground, #656d76);
|
||||
border: 1px solid var(--border, #e2e5e9);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.cons-card-main {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 6px;
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.cons-tokens {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: var(--foreground, #1f2328);
|
||||
}
|
||||
|
||||
.cons-cost {
|
||||
font-size: 12.5px;
|
||||
font-weight: 600;
|
||||
color: var(--speed-accent);
|
||||
}
|
||||
|
||||
.cons-card-sub {
|
||||
font-size: 11px;
|
||||
color: var(--muted-foreground, #656d76);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.cons-card-foot {
|
||||
font-size: 10.5px;
|
||||
padding-top: 3px;
|
||||
border-top: 1px dashed var(--border, #d8dee4);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.quota-block {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
Reference in New Issue
Block a user