Fix toast view cutoff

This commit is contained in:
Leon Böttger committed 2026-01-18 11:31:37 +01:00
1 parent bf1a8164d9
commit fbd14c2280
2 files changed
+12 -8

No files matched your search

+7 -4
View File
@@ -11,7 +11,8 @@
"value" : "QuickDrop" "value" : "QuickDrop"
} }
} }
} },
"shouldTranslate" : false
}, },
"CFBundleName" : { "CFBundleName" : {
"comment" : "Bundle name", "comment" : "Bundle name",
@@ -23,7 +24,8 @@
"value" : "QuickDrop" "value" : "QuickDrop"
} }
} }
} },
"shouldTranslate" : false
}, },
"NSHumanReadableCopyright" : { "NSHumanReadableCopyright" : {
"comment" : "Copyright (human-readable)", "comment" : "Copyright (human-readable)",
@@ -32,10 +34,11 @@
"en" : { "en" : {
"stringUnit" : { "stringUnit" : {
"state" : "new", "state" : "new",
"value" : "" "value" : "Copyright © 2025-2026 Leon Böttger"
} }
} }
} },
"shouldTranslate" : false
}, },
"NSLocalNetworkUsageDescription" : { "NSLocalNetworkUsageDescription" : {
"comment" : "Privacy - Local Network Usage Description", "comment" : "Privacy - Local Network Usage Description",
+5 -4
View File
@@ -8,7 +8,7 @@
import SwiftUI import SwiftUI
import AppKit import AppKit
let toastViewSize = CGSize(width: 400, height: 100) let toastViewSize = CGSize(width: 400, height: 120)
struct QuickDropToastView: View { struct QuickDropToastView: View {
@ObservedObject var settings = Settings.shared @ObservedObject var settings = Settings.shared
@@ -122,9 +122,9 @@ struct QuickDropToastView: View {
) )
.overlay( .overlay(
RoundedRectangle(cornerRadius: 16, style: .continuous) RoundedRectangle(cornerRadius: 16, style: .continuous)
.stroke(Color.black.opacity(0.06), lineWidth: 1) .stroke(Color.black.opacity(0.03), lineWidth: 1)
) )
.shadow(color: Color.black.opacity(0.1), radius: 20) .shadow(color: Color.black.opacity(0.03), radius: 20)
.frame(maxWidth: .infinity) .frame(maxWidth: .infinity)
} }
} }
@@ -211,8 +211,9 @@ struct QuickDropToastView_Previews: PreviewProvider {
onCancel: { } onCancel: { }
) )
.frame(width: toastViewSize.width, height: toastViewSize.height) .frame(width: toastViewSize.width, height: toastViewSize.height)
.clipped()
.padding(100) .padding(100)
.background(Color.white.opacity(0.2)) .background(Color.black.opacity(0.2))
.onAppear { .onAppear {
model.progress = 0.01 model.progress = 0.01
} }