fix: DEBUG 调试标签放大 + 点击复制页面名
字号 9→13,padding 加大,背景加深,去掉 allowsHitTesting,点击复制 label Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
d8bdfe1dd4
commit
4029da9c44
@ -118,13 +118,13 @@ extension Route {
|
||||
#if DEBUG
|
||||
content.overlay(alignment: .topTrailing) {
|
||||
Text(label)
|
||||
.font(.system(size: 9, weight: .semibold, design: .monospaced))
|
||||
.font(.system(size: 13, weight: .semibold, design: .monospaced))
|
||||
.foregroundColor(.white)
|
||||
.padding(.horizontal, 6).padding(.vertical, 2)
|
||||
.background(Color.black.opacity(0.55))
|
||||
.cornerRadius(4)
|
||||
.padding(.horizontal, 8).padding(.vertical, 4)
|
||||
.background(Color.black.opacity(0.65))
|
||||
.cornerRadius(6)
|
||||
.padding(.top, 60).padding(.trailing, 4)
|
||||
.allowsHitTesting(false)
|
||||
.onTapGesture { UIPasteboard.general.string = label }
|
||||
}
|
||||
#else
|
||||
content
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user