mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-05 20:44:07 +08:00
- Updated `foreign-types` to version 0.5.0 and added new dependencies in `Cargo.lock`. - Removed unused dependencies `chart.js` and `react-chartjs-2` from `package.json` and `package-lock.json`. - Enhanced `CacheHitRateChart` to use `EChart` for rendering, improving performance and visual fidelity. - Adjusted styles for `CacheHitRateChart` to ensure proper layout and responsiveness. - Refactored API query construction in `api.ts` for better readability. - Updated `HomeMetrics` to support refresh functionality for dynamic data updates.
35 lines
560 B
SCSS
35 lines
560 B
SCSS
@use "../../styles/typography" as type;
|
|
|
|
.root {
|
|
position: relative;
|
|
width: 200px;
|
|
max-width: 100%;
|
|
height: 82px;
|
|
overflow: hidden;
|
|
align-self: center;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.chart {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 140px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.label {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 10px;
|
|
left: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
color: var(--vscode-foreground);
|
|
font-family: var(--oa-number-font);
|
|
font-size: type.$font-size-xl;
|
|
line-height: 1;
|
|
pointer-events: none;
|
|
}
|