Files
cursor-byok/apps/desktop/src/components/metrics/CacheHitRateChart.module.scss
T
leookun 995a12df44 chore: update dependencies and improve chart components
- 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.
2026-08-27 00:34:35 +08:00

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;
}