nvrsion: Add: Fix height calculation in BuildBanner to use full header height with stripe height based on build type/hash/pill text + padding.
Nucleic-Promote: 1 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -114,8 +114,11 @@ struct BuildBanner: View {
|
||||
.padding(.vertical, 3)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
// The channel-colored stripe spans the full width, with the content (channel name,
|
||||
// build label, and the EXPERIMENTAL pill) held at the leading edge.
|
||||
// build label, and the EXPERIMENTAL pill) held at the leading edge. Its height is
|
||||
// just the row of text plus padding; the trailing vertical padding is transparent
|
||||
// margin that keeps the stripe from filling the header's full height.
|
||||
.background(style.tint.opacity(0.9))
|
||||
.padding(.vertical, 4)
|
||||
.accessibilityLabel(style.tooltip(version: info.version, build: info.buildLabel))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user