mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 02:51:11 +00:00
Change toast view close button position
This commit is contained in:
1 parent
86b7e4ca24
commit
50d4d4ee92
1 file changed
+3
-1
@@ -242,7 +242,7 @@ struct QuickDropToastView: View {
|
||||
RoundedRectangle(cornerRadius: toastCornerRadius, style: .continuous)
|
||||
.stroke((colorScheme.isLight ? Color.white.opacity(0.5) : Color.gray.opacity(0.33)), lineWidth: 1)
|
||||
)
|
||||
.overlay(alignment: .topTrailing) {
|
||||
.overlay(alignment: .topLeading) {
|
||||
if closeButtonVisible {
|
||||
Button(action: {
|
||||
if let actions = actions {
|
||||
@@ -262,6 +262,8 @@ struct QuickDropToastView: View {
|
||||
)
|
||||
}
|
||||
.buttonStyle(PlainButtonStyle())
|
||||
.padding(.bottom, 5)
|
||||
.padding(.trailing, 3)
|
||||
.onHover { hovering in
|
||||
if hovering {
|
||||
withAnimation(.easeInOut(duration: 0.15)) {
|
||||
|
||||
Reference in new issue
Block a user