feat(ui): 实现全卡堆叠趋势与单页资源进程布局

This commit is contained in:
2026-11-15 17:59:52 +08:00
parent 469766892d
commit 99e558625b
37 changed files with 579 additions and 195 deletions
+1 -2
View File
@@ -26,7 +26,7 @@ struct ResourceCard<Chart: View, Content: View>: View {
GeometryReader { bounds in
ZStack(alignment: .bottomLeading) {
chart()
.frame(width: bounds.size.width, height: ResourceCardMetrics.plotHeight)
.frame(width: bounds.size.width, height: bounds.size.height)
VStack(alignment: .leading, spacing: ResourceCardMetrics.gap) {
header
HStack(alignment: .firstTextBaseline, spacing: 6) {
@@ -42,7 +42,6 @@ struct ResourceCard<Chart: View, Content: View>: View {
}
.font(.system(size: 9))
.padding(ResourceCardMetrics.padding)
.padding(.bottom, ResourceCardMetrics.plotHeight - ResourceCardMetrics.padding)
.frame(width: bounds.size.width, height: bounds.size.height, alignment: .topLeading)
}
.background(Color("PanelCard"))