fix(ui): 撤销文字底板并保留大字号排版
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user