mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-22 06:15:59 +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)
|
RoundedRectangle(cornerRadius: toastCornerRadius, style: .continuous)
|
||||||
.stroke((colorScheme.isLight ? Color.white.opacity(0.5) : Color.gray.opacity(0.33)), lineWidth: 1)
|
.stroke((colorScheme.isLight ? Color.white.opacity(0.5) : Color.gray.opacity(0.33)), lineWidth: 1)
|
||||||
)
|
)
|
||||||
.overlay(alignment: .topTrailing) {
|
.overlay(alignment: .topLeading) {
|
||||||
if closeButtonVisible {
|
if closeButtonVisible {
|
||||||
Button(action: {
|
Button(action: {
|
||||||
if let actions = actions {
|
if let actions = actions {
|
||||||
@@ -262,6 +262,8 @@ struct QuickDropToastView: View {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
.buttonStyle(PlainButtonStyle())
|
.buttonStyle(PlainButtonStyle())
|
||||||
|
.padding(.bottom, 5)
|
||||||
|
.padding(.trailing, 3)
|
||||||
.onHover { hovering in
|
.onHover { hovering in
|
||||||
if hovering {
|
if hovering {
|
||||||
withAnimation(.easeInOut(duration: 0.15)) {
|
withAnimation(.easeInOut(duration: 0.15)) {
|
||||||
|
|||||||
Reference in new issue
Block a user