feat(ui): 实现全卡堆叠趋势与单页资源进程布局
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user