fix(ui): 撤销文字底板并保留大字号排版

This commit is contained in:
2026-11-15 19:57:59 +08:00
parent 9088f8a251
commit e2f88023d6
7 changed files with 17 additions and 14 deletions
-6
View File
@@ -74,12 +74,6 @@ struct ResourceCard<Chart: View, Content: View>: View {
}
.font(.system(size: ResourceCardMetrics.auxiliarySize))
.fixedSize(horizontal: false, vertical: true)
.background {
RoundedRectangle(cornerRadius: 8)
.fill(Color("PanelCard").opacity(ResourceCardMetrics.textBackgroundOpacity))
.padding(-4)
.allowsHitTesting(false)
}
}
private var header: some View {
@@ -10,7 +10,6 @@ nonisolated enum ResourceCardMetrics {
static let headlineHeight: CGFloat = 34
static let auxiliarySize: CGFloat = 10
static let auxiliaryHeight: CGFloat = 16
static let textBackgroundOpacity: Double = 0.88
static let gap: CGFloat = 4
static let tooltipMinimumY: CGFloat = 68
}